Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

variation with token

  • CarlottaToletti
  • CarlottaToletti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #226373 by CarlottaToletti
variation with token was created by CarlottaToletti
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi,
we would like to calculate the variation between the value that the respondent inserts in answer box and the token we have. We used the formula below but it didn't work.

 
Answer_Price: {G01Q02_SQ001_SQ001} Token_Price: {TOKEN:ATTRIBUTE_1} Difference between Answer and Token: {G01Q02_SQ001_SQ001 - TOKEN:ATTRIBUTE_1)}

The formula works when we calculate the variation between two values in two different answer boxes, but not with our token. 
In the picture you can see Answer_Price (the value entered by the respondent) and Token_Price (our token), but not the difference between answer and token. 

  ​​​​​​​ ​​​​​​​ 
Do you know if that's possible?
Thank you for your help.



 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #226376 by Joffm
Replied by Joffm on topic variation with token
Hi,
at first sight I do not see an issure
 

Can be anything, even a small typo.

But you did not answer the initial questions.
And you did not provide a lss export of these questions.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • CarlottaToletti
  • CarlottaToletti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #226378 by CarlottaToletti
Replied by CarlottaToletti on topic variation with token
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.2.10
Own server or LimeSurvey hosting: Cloud
Survey theme/template: Fruity Theme ( fruity) 

File Attachment:

File Name: limesurvey...4218.lss
File Size:47 KB


Thank you Joffm 
Please see attachment the Iss export, our question still doesn't work. 

Regards 
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #226379 by Joffm
Replied by Joffm on topic variation with token
Hi,
how did you enter the ATTRIBUTE? 
With dot or comma as separator?

Here you see the difference.
Your setting is "comma"
I entered the value in ATTRIBUTE_1 with dot, in ATTRIBUTE_2 with comma.
 
The first is calculated, the second is not.

So, obviously, ATTRIBUTES expect a dot as decimal separator. 

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • CarlottaToletti
  • CarlottaToletti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #226383 by CarlottaToletti
Replied by CarlottaToletti on topic variation with token
Great! It's working!

Thank you

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose