Replace function
Best Answer
-
Hi Josh, thanks a lot for your help. That was spot on. Have a great day!
1
Answers
-
Hi, not entirely sure what you are trying to do, but it sounds like you are replace say 'blue' with null, but want to also replace 'green' and 'orange' with null?
Firstly just checking but you need to create an advanced Function:
either follow the link or create a standalone Function.
Once you have done that there are quite a few different approaches. It is difficult to say which is best without more information on how many values you want to replace?, how similar those values are?, how frequently this list of values might change in future?
Here is one idea:
param test; IfThenElse( _Equals([p:test], {'blue', 'green', 'orange'}), null, [p:test] )
0