Math operations and embedded data | XM Community
Question

Math operations and embedded data

  • 4 October 2021
  • 1 reply
  • 440 views

Hello
I am sure the answer to this is probably super simple, so allow me to make a fool of myself.

I have an embedded data field called Total and this sums the scores of my questionnaire.
I want to then average that e.g. ${(e://Field/Total)/55}
At the end of the survey I am using piped text to provide participants with their score.
I have searched the community and tried every permutation I can think of (with spaces, without spaces, with and without brackets and more..) and in testing the total score shows up in the dataset and the resulting email, but the calculated average does not.
Glen


1 reply

Userlevel 4
Badge +26

Hello Glen,
Here is how you can write the code:
$e{${e://Field/Total}/55}
All the best for your project!

Leave a Reply