# Highest and lowest value in expression manager

5 years 2 months ago #77087 by granen
granen created the topic: Highest and lowest value in expression manager
Hello,

I am trying to use the Expression Manager for the first time (Great job from the developer).

This is what I would like to do.

The repondents first answers 10 questions if he/she is willing to pay the sum or not. See image

On the next page I would ask a question like this

The smallest sum you are willing to pay is {smallest value} and the highest you are not willing to pay is {Largest value}. What is the highest sum you are willing to pay? It can be anything between {smallest value} and {Highest value}

Is this possible to do?

//Erik
##### Attachments:

5 years 1 month ago #77754 by TMSWhite
TMSWhite replied the topic: Highest and lowest value in expression manager
say your questions are q1-q10, the easiest way is to set the desired values for Yes, No and Don't Know. So, for your first question, the coded value for Yes is 8000; for q2, the coded value for Yes is 1000, etc.

Then, to get the min, you use:
`The smallest you are willing to pay is {min(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10)}`

and to get the max, you use:
`The largest you are willing to pay is {max(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10)}`