Hi all,
First of all, happy new year everyone!
I am making an analysis with a multiselect parameters in combination with calculated fields. However, I am somewhat puzzled by the behaviour of the parameter.
As an example:
First, I created a multiselect parameter Par1 that can have values p1, p2, p3, p4. Then, I create a calculated field: ifelse(in(c1, ${Par1}),0,1). So basically, if the value in field c1 is selected in the parameter it should set the calculated field to 0 and otherwise to 1.
This works if I select some values in the parameter control. However, if I click the select all button in the control, every value becomes 1 (while it should be 0). On the other hand, if I than deselect a value in the control and reselect it that value (so all values are selected now), the calculated field works like a charm.
My theory is that the parameter returns a list if I select all the values manually and it returns something different if I click on select all.
Is this the case? And if so, can it be fixed so that the output of the parameter is consistent regardless how I select the values?
I have read some other Q&A on this forum like: How to use Multiple Values Parameter in Calculated Field and Controls and Multi value parameter controls supporting only equals and not equals. However, this doesn’t really answer my question.
Thanks in advance!
RemcoC