Using e in qualtrics | XM Community
Question

Using e in qualtrics

  • 8 August 2023
  • 2 replies
  • 30 views

Userlevel 2
Badge +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

Userlevel 7
Badge +27

@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 }

Userlevel 5
Badge +8

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