Hi!
Maybe I was a bit too fast here, not understanding your logic fully 🙂
For the first table, why is the value for 0='1' and not '4'?
Resulting tables
max = 0
max = 1
max = 2
Total
1
2
1
If so one way is to create the new variable (0,1,2...n) by assigning the ID to them if the coded_answer is correct and then set the aggregation so distinc count.
Variable unique0:
IF coded_answer = 0 return ID
ELSE .
Variable unique1:
IF coded_answer = 1 return ID
ELSE .
Variable unique(n):
IF coded_answer = n return ID
ELSE .
//Fredrik
... View more