I want to calculate the average of these two text entries. In the Survey flow, after the block where I ask them about these two numbers, I write:
!
Apparently the expression is not correct. When I write :
${e://Field/average} , I get {Invalid Expression}.
I followed the "Math Operations" page provided in Qualtrics to write the embedded data expression. What am I doing wrong?
Thank!
TomG I don't suppose you happen to know how I could force that calculation to show up with decimals? (Currency)
@KWigg,
You can use the round function in an expression: https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/math-operations/#AvailableOperations
Dangit, I even saw that part!! Wizard, indeed! You're my hero!! :)
So, I believe that works, however, I need to force a '.00' on whole numbers. Can rounding do that, or do I need something else?
Unfortunately, there isn't a practical survey flow method of formatting numeric embedded variables. So, you'll have to do it in JavaScript with .toFixed(2).
TomG Thank you - I've been looking into that, actually, just haven't gotten quite the right syntax. Appreciate your help!!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.