How to create a response report with a ranking question | Experience Community
Skip to main content
Question

How to create a response report with a ranking question

  • January 9, 2024
  • 5 replies
  • 1303 views

Forum|alt.badge.img

I´ve created  a survey which asks one question - participants are presented with 12 statements and they are asked to rank their three, 1 is the most important and 3 the less important. 
I'm hoping to use the Visualization function in Results to then present:

 

  1. The ranking top 3 statements most selected
  2. A map that combines the frecuency of the selection for each statement and the ranking….. 

Do you have any advice so we can do that

5 replies

kgillis
Level 6 ●●●●●●
Forum|alt.badge.img+30
  • Level 6 ●●●●●●
  • January 9, 2024

You could use a bar graph. May need to create a measure group depending on which question type you used to set up in the survey.


Forum|alt.badge.img
  • March 21, 2024

I have seen this question asked often, but no one seems to have a satisfactory breakdown. Is there a video we can watch or something? This seems like such a silly thing to have to ask, yet here we all are. I am so frustrated. Of course all of us using the ranking question would expect to be able to see what selections were the top ranked and which ones were the lowest ranked. Why isn’t there a guide ready to go for folks like us who are obviously using the rank question as a means to get a simple result?
*sigh* This feels sooooo silly. 


Forum|alt.badge.img
  • March 21, 2024

Ok… I posted what I ended up doing in this question: 

 


Forum|alt.badge.img+11
  • Level 4 ●●●●
  • February 4, 2026

​Hi @Nunya,

 

Although a year has gone by - I just wanted to suggest this thread, courtesy of Tom_1842. 

It’s Javascript but in the end you often have to embrace JS code if you want things to be easier when reporting.  This helped me create an embedded field which could then technically be classed as a multi-answer textset with a comma delimiter (or what ever you want).  Which then allowed me to chart it more easily in a dashboard or as it’s now a single field, export it into excel and then split the labels into their respective columns.  The first column being the top rank for which you can then count each value and thus identifying the most common item receiving the top rank.

 

Based on what Tom wrote I devised the below. You put this in the question’s javascript (ie this was Question 14 for me so I labelled up the various variables accordingly).

// this code will record the final ranking order into different variables so that they can be used in other
// questions or for analysis of what is the most common item in each rank or overall. https://community.qualtrics.com/custom-code-12/piping-from-a-ranking-to-a-ranking-in-the-same-order-23343
// Note embedded field name is limited to 40 characters, any longer it won't work
// setup the embedded fields in the survey flow first
Qualtrics.SurveyEngine.addOnPageSubmit(function(){
var c14="";
var x14 = this.getQuestionContainer().querySelectorAll("li");
for(i=0;i<x14.length;i++){
var b14 = x14[i].children[1].innerText;
c14 += x14[i].children[1].innerText + ", ";
Qualtrics.SurveyEngine.setEmbeddedData("Q14_Reserve_Break_Type_rank_rank"+(i+1),b14);
}
c14=c14.slice(0, -2); //to remove the end comma
Qualtrics.SurveyEngine.setEmbeddedData("Q14_Reserve_Break_Type_rankfinal",c14);
//console.log("Q14: " + c14)
});

This returns something like this:

 

Hope that helps, someone!

 

Rod Pestell


Forum|alt.badge.img+11
  • Level 4 ●●●●
  • February 5, 2026

update: just wanted to provide a link to another thread as with the help of other in the community I have developed an undo feature and the code above has been enhanced to cope with that feature.

 

 

Thanks

 

Rod Pestell