I have a data set where people select the activities that they participated (0,1). Then they are asked what was the most important activity. I need a table which lists the percentage of people who said activity x was % most valuable. The tricky thing is that for each activity I need to re-run the table selecting only people who participated in activity x amd then grabbing the percentage in the highest category from this table and putting this value into another table.
I can subset the data so it only has people who participated in activity x and then run a table with percentages. In this case I would run the table three times. But I have no clue how to get the final table based on these elements?
In the end the table needs to look like this:
rated most valuable
activity x x.x%
activity y x.x%
activity z x.x%