Display Logic based on Group Scoring Comparison | XM Community
Solved

Display Logic based on Group Scoring Comparison

  • 12 November 2021
  • 2 replies
  • 66 views

Hi,
I am trying to set up a display logic based on the difference between the two scores, but so far I've been unsuccessful - not sure if Qualtrics doesn't allow for this or if I am doing something wrong.
Here is an example that closely resembles what I am trying to do:
Q1 - How often do you read at home?
Q2 - How often do you read while traveling?
The scales for these two questions are identical - Daily/Weekly/Monthly. I used scoring to assign values to these answer options - Daily (3), Weekly (2), Monthly (1). Now, I want to ask a follow-up question depending on their score.
If Home Score is higher (i.e., they read more often while at home), I want to ask why. The same thing for Traveling - if they read more while traveling (i.e., traveling score is higher), I want to ask why.
I divided scoring into two categories and set an embedded variable for each (i.e., HomeScore and TravelScore); however, when I set the display logic in the survey flow that says if "HomeScore IS GREATER THAN TravelScore" (and other way around), the question doesn't show up. Excel/CSV export clearly shows that one score is higher than the other.
I am open to different approaches (e.g., without the scoring), however, the setup has to stay the same (i.e., separate questions for reading frequency at home and while traveling).
Thanks for the help!

icon

Best answer by Kate 12 November 2021, 18:15

View original

2 replies

Userlevel 7
Badge +19

I have it working just fine- not sure where our methods differ, so sharing how I got there:

  • image.pngFor the Embedded data, I used the recode values. I know that qualrics saves these as numerical values, so I know I'm using a field type that math operations ("greater than") will work on.

  • For the branching logic, the first statement is already recognized as embedded data. But for the second part of the logic statement, you want to make sure that you're pulling in the embedded data field, so make sure you ask it to pipe in that field's results. Just typing in "TRAVELSCORE" is going to be saved as a text field which reads "TRAVELSCORE", so you're kind of asking the system it won't be able to understand or assess.


There's likely a few other methods. I suspect that if you used the piping language, you could also just say "Branch if the question recode value from Home is greater than the question recode value from Travel" without needing the embedded data at all. But I haven't tried that!

Thank you so much - solution confirmed!

Leave a Reply