Hi, I’m creating a dashboard in QS and need assistance with a visual. The goal is to display survey responses ranked by popularity. The survey has one question with four options (in-person, virtual, e-learning, or other). I want to create a chart that shows these options ranked from the most to the least selected. Could someone advise on the best approach to achieve this in QS? I tried the CountOver calc but it didn’t work quite right.
The data is in Excel form, set up like the below snapshot. This is how the respondents ranked their preference. For example, Respondent #1 ranked their preferences as 1). Virtual, 2). In-Person, 3). eLearning & 4). Other. I’m trying to work out how to show these rankings in a bar chart in QS (assuming a bar chart is the best way to show it, I’m open to other suggestions as well). The chart should show the most popular answer, 2nd popular, etc. Initially, I tried the CountOver function using countOver([“Preferred method of learning - In-Person, speaker”], , PRE_AGG) but I don’t think this is what I just kept getting an error message: At least one of the arguments in this function does not have correct type. Correct the expression and choose Create again. So the CountOver function may not be the best way to calculate what I need.
Thank you for your help!
One option could be to pivot the dataset (I’ve converted your example below), so that each line represents a single respondent’s rank for each Type of learning option.
This would then make it simple to build a bar chart visual that displays the average rank for each option, e.g.