How to count the response using embedded data and use it to do display logic? | XM Community
Skip to main content
Solved

How to count the response using embedded data and use it to do display logic?


Forum|alt.badge.img+3
  • Level 2 ●●
  • 11 replies

Hi all,

I am a bit new using embedded data. I am currently doing Likert scale. I want to count the participant choices and use it to do display logic. For example, after Likert scale questions are done. I will show them their choices in the next question. but some of the choices will only show if the specific count is reached (e.g. strongly agree count is more than 3).
I tried to do this and it’s not working for me. Please kindly see the screenshots. Please help me figure it out. Thank you.

(in my screenshot, I want to show “test A” choice only when A is selected more than once in Likert scale)

 

Best answer by vgayraud

Hi,

You can also use scoring and display logic based on scoring.

The way your survey flow seems to be set up won’t work tho: you calculate the value you want to use in display logic after the question in which you want to use it (your q5 and its display logic are in the block before your logic/ED branches). You would need to move out q5 of that its block and place it in another block after your counting branches.

If you have a reasonable number of MC questions before, you could also use and or condition in your display logic without counting anything (display choice if q1=A or q2=A or q3=A).

Finally, you could also use a matrix instead of MC questions and base your display logic directly on the A count.

View original

7 replies

Forum|alt.badge.img+16

try A = $e{ e://Field/A + 1 }.


  • Level 4 ●●●●
  • 209 replies
  • March 25, 2025
Okkar wrote:

Hi all,

I am a bit new using embedded data. I am currently doing Likert scale. I want to count the participant choices and use it to do display logic. For example, after Likert scale questions are done. I will show them their choices in the next question. but some of the choices will only show if the specific count is reached (e.g. strongly agree count is more than 3).
I tried to do this and it’s not working for me. Please kindly see the screenshots. Please help me figure it out. Thank you.

(in my screenshot, I want to show “test A” choice only when A is selected more than once in Likert scale)

 

Move the second “A” to a seperate block, only then it will work


vgayraud
QPN Level 5 ●●●●●
Forum|alt.badge.img+49
  • QPN Level 5 ●●●●●
  • 375 replies
  • Answer
  • March 25, 2025

Hi,

You can also use scoring and display logic based on scoring.

The way your survey flow seems to be set up won’t work tho: you calculate the value you want to use in display logic after the question in which you want to use it (your q5 and its display logic are in the block before your logic/ED branches). You would need to move out q5 of that its block and place it in another block after your counting branches.

If you have a reasonable number of MC questions before, you could also use and or condition in your display logic without counting anything (display choice if q1=A or q2=A or q3=A).

Finally, you could also use a matrix instead of MC questions and base your display logic directly on the A count.


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 11 replies
  • March 26, 2025

Hi ​@vgayraud 

Thank you for the detail explanation. I moved the q5 to the next block (screenshot attached), and it’s still not working.

My actual survey is trying to do q methodology but combination with Likert scale.


I have 44 statements
I start with Likert Scale with 5 choices (strongly disagree to strongly agree)  with no restriction, they could select all strongly disagree if they want (extreme scnerio).

after that I will ask them to do Q sort (ranking them basically but with restriction, they can only rank total of 18  in each side disagree/agree, and 8 neutal and put them 3 in one category, 4 in another, and 5 ,6  on each side (disagree / agree).

I want to show them their selections from likert scale for them to easier to choose.

In next bock q sort questions, I start with selecting 3 most disagree.
I will show them only what they selected strongly disagree in likert.
If the participants have selected more than 3 strongly disagree in likert, this is no problem. 

but if they didn’t select enough in likert, I want to show them statements that they chose in disagree category. I only want to display them as minimum as possible.

I could do logic as you mentioned. But for the 44 statements,  the possibility and combiniation of logic will be too many.

The easiest way for me at this point is to get the count from the Likert scale.

I called support today and he couldn’t help me today. 

I could share this test survey with you and could you hlep me with how to set up the count?

 

 

 

Q sort diagram

 


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 11 replies
  • March 26, 2025

Hi ​@Chee Heng_SZ 

Chee Heng_SZ wrote:

try A = $e{ e://Field/A + 1 }.

I did that and still not working for me. Which one shoud I do next?


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 11 replies
  • March 26, 2025
jbk wrote:

Move the second “A” to a seperate block, only then it will work

 

Hi ​@jbk .
I moved it to next bock and still not working. Which one shoud I try next?
Thank you


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 11 replies
  • March 27, 2025

Hi ​@vgallagh 

I decided to go with using Matrix and use it’s count function. At first, I thought my statements are rather long and it seems hard to read in matrix form. But I found a setting to make it easier to read. Thanks again for your help.

 


Leave a Reply