Type | Name | Label | Calculation |
---|---|---|---|
select_multiple size_list | sizes | Available Sizes | |
decimal | minimum_size | Minimum Available Size | min(${sizes}) |
list_name | name | label |
---|---|---|
size_list | 1 | Small |
size_list | 2 | Medium |
size_list | 3 | Large |
Hi Cory
Select_multiple (or select_one) questions do not support calculations of any type. So it is not possible to use min or max in the way that you outlined. We can get this added as an enhancement request though.
Thanks
John
Hi John,
Thanks for your reply. I may not have been clear that I was using a decimal question for the actual calculation part. I've edited the question to make it easier to read.
However, the If statements will work for me, I was just hoping to find an easier way to use the answers from select_multiple for future calculations if possible.
Cheers!
Cory
HI Cory
Because the select_multiple actually returns a string, any alternative approach would require you extracting the numbers from the string (and then getting the min/max), and would still require a number of if statements to achieve what you are trying to do. So to answer your question - there is not an easier way to do this.
Thanks
John