Forum Discussion
JetMax
6 years agoFrequent Visitor
Measure Help
Hi All! I need some help with a Measure I am trying to do. I want to do the below which is working out the cost of something based on 3 separate critrea - Brand, Country and Type and work out the...
- 6 years ago
My Mistake
SWITCH(true(), firstnonbank(table[Brand],blank())="Opt 1" && firstnonbank(table[Country],blank())="Opt 1" && firstnonbank(table[Type],blank()) = "Opt 1","A1", firstnonbank(table[Brand],blank())="Opt 1" && firstnonbank(table[Country],blank())="Opt 2" && firstnonbank(table[Type],blank()) = "Opt ","A3", "A4" )
JetMax
6 years agoFrequent Visitor
Hi amitchandak
Thanks for the reply, I have tried this but I get this error - "Too few arguments were passed to the FIRSTNONBLANK function. The minimum argument count for the function is 2.". Have I entered somehing incorrectly?
amitchandak
6 years agoSuper User
My Mistake
SWITCH(true(),
firstnonbank(table[Brand],blank())="Opt 1" && firstnonbank(table[Country],blank())="Opt 1" && firstnonbank(table[Type],blank()) = "Opt 1","A1",
firstnonbank(table[Brand],blank())="Opt 1" && firstnonbank(table[Country],blank())="Opt 2" && firstnonbank(table[Type],blank()) = "Opt ","A3",
"A4"
)