How do I pipe the top 3 choices from Rank Order into the next three questions? | XM Community
Skip to main content
Solved

How do I pipe the top 3 choices from Rank Order into the next three questions?

  • February 25, 2020
  • 2 replies
  • 211 views

Shij_Thomas
Hi QX Peeps, I've created a rank order question and would like to pipe the top 3 choices from the rank order into the next three questions. The first one is easy - I can use ${q://QID1003/ChoiceGroup/ChoiceWithLowestValue} - however I can't see an option to pick the next two after that. I tried altering the format to ${q://QID1003/ChoiceGroup/ChoiceWithSecondLowestValue} or ${q://QID1003/ChoiceGroup/ChoiceWithNEXTLowestValue} - these don't work. I'm wondering if anyone has solved this before?

Best answer by TomG

You need to use JavaScript or a web service to do this. Basically, pipe all the ranks into your script, have it sort them by rank, then set/return rank1, rank2, rank3, etc. variables.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • February 29, 2020
You need to use JavaScript or a web service to do this. Basically, pipe all the ranks into your script, have it sort them by rank, then set/return rank1, rank2, rank3, etc. variables.

Shij_Thomas
  • Author
  • March 8, 2020
Thanks @TomG