dividing two numbers and multiply by 100 to get percentage | XM Community
Skip to main content

I am trying to get my calculation to show as a whole percentage. ie, for the calculation below it just divides the two numbers but doesnt out put it as a percentage. for example im trying to divide 650/800= 0.8125 and then multiply it by 100 to get 81.25% rounding two numbers 


 

Hello @sbashiruddin,

I think the Math formula you’re using is wrong. Try to set up your formula as below:

$e(({QID23 choice text entry value }/{QID21 choice text entry value})*100, 2)

 

Let me know if this helps.


Hi @Sachin Nandikol - it did not work :( 


Hello @sbashiruddin,

One small change in the formula. Set up your math formula as: $e{ round( ( ${q://QID32/ChoiceTextEntryValue} / ${q://QID33/ChoiceTextEntryValue} ) * 100 , 2 ) }

 

I tested it on my end and it is working as expected. Also, make sure you add this specific variable after the survey question blocks, as shown in the screenshot below.

 

Let me know if this helps.


Leave a Reply