Finding maximum values of embedded data | XM Community
Skip to main content

Hello!
I have a set of embedded data values: A, B, C, D, E
Each value is a math equation that outputs a number based on multiplying recode values of questions in the survey
A,B, C, D, and E each have the option of being 1, 2 ,3 4, 5 or 6.
What I would like to do is have a 6th embedded data value that is the maximum value for A, B, C, D, E
for example if
A=4
B=1
C=0
D=5
E=5
The final value would be 5.
Is there an easy way to do this with embedded data?
Thanks!

Similar discussion here.
https://www.qualtrics.com/community/discussion/3817/math-operation-for-calculating-the-maximum-value


SurajK thank you! This is very similar and helpful. However, since i have A,B, C, D, and E as embedded data values already, where would I put the javascript - I dont have a specific question I was to append it to. Can I use JS in an embedded data field?
Thanks


You can add the JS in descriptive text element after the embedded data calculations and add the JS code in that element and using JS hide the descriptive text element.
To hide the question, you can use the code from the below link,
https://www.qualtrics.com/community/discussion/1460/how-can-i-program-a-hidden-backgroud-question


Leave a Reply