Hi @fmi,
You could use calculate
within the matrix question type
as outlined in the image below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
Data entry screen as seen in Enketo: The values within the red highlighted box is an auto calculated value.
Reference xlsform:
Matrix Questions (Calculation).xls (46.5 KB)
Have a great day!