Using e in qualtrics | XM Community
Skip to main content
Question

Using e in qualtrics


Forum|alt.badge.img+3

Hello, 

Does anyone know if it’s possible to use e in qualtrics math operations?

I need to calculate prob=e^G1 where G1 is a numeric embedded data variable. I’ve tried $e{exp(${e://Field/G1})}  and $e{e^${e://Field/G1}} and I got “invalid expression” for both when testing. 

Thank you!! 

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • August 8, 2023

@Carolinedavies,

Since e is a constant, you could define e as an embedded data field, then use it in math operations:

e = 2.7182818284 (you could add more decimals places, but I don’t know what precision math operations support)

Then:

$e{ e://Field/e ^ e://Field/G1 }


rgupta15
Level 4 ●●●●
Forum|alt.badge.img+8
  • Level 4 ●●●●
  • 92 replies
  • August 10, 2023

If it’s still not working then use the same expression in a hidden question and set the value for embedded using .setEmbeddedData() as we do traditionally instead of using it from survey flow.


Leave a Reply