Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
In a calculated dimension for a pivot table, I would like to test the condition
IF(MyField in ['A','B','C','D'])
For now, I am doing
IF(MyField = 'A' OR MyField = 'B' OR MyField = 'C' OR MyField = 'D', ..., ...)
Since expression for MyField is heavy, I would like to replace this by a more efficient syntax, such as search in a list (like a contains() method in other languages). Is there such a syntax?
Thanks in advance!
Yes you are right or may be you can use Index() function for this.
You can try match function also
Ex:-
=IF( Match( MyField,'A','B','C','D' ))
is =IF( Match( MyField,'A','B','C','D' ),...,...) strictly equivalent to IF(MyField = 'A' OR MyField = 'B' OR MyField = 'C' OR MyField = 'D', ..., ...) ?
Yes you are right or may be you can use Index() function for this.