get result of different variables in repeater (+ from high to low)


for the project I’m working on I want to generate answers from a list of questions (abc answers) in a repeater.

  1. Do you ever go to the zoo?
    a. yes, I go often. (if selected -> [[global variable + 2]])
    b. i go sometimes. (if selected -> [[global variable + 1]])
    c. no I’m not going. (if selected -> [[global variable + 0]])

after x number of questions I want to get a top 3 of “categories” (ie the global variables) in a repeater in a pop-up.

Does anyone know if this is possible and if so how?

You could store the counts of the different variables in a repeater, sort the repeater high-to-low and then take the value from the first three rows.