Forum Discussion
hyperbob0811
6 years agoFrequent Visitor
Nested If formula in Power Bi Query custom column issue
I have the following code in a custom column, and it simply refuses to accept any variant of the very first then string value I want to add. Doesnt matter what I do, I get the same error. this seems...
- 6 years ago
hyperbob0811 - You don't use the paren's with if statements in M code. That's DAX syntax.
Should be:
if [alpha_code] = ...
Greg_Deckler
6 years agoCommunity Champion
hyperbob0811 - You don't use the paren's with if statements in M code. That's DAX syntax.
Should be:
if [alpha_code] = ...
- hyperbob08116 years agoFrequent Visitor
Thanks, now I get a token else error - how do I end this formula?
- Greg_Deckler6 years agoCommunity Champion
hyperbob0811 - Add else "" or something like that.
- hyperbob08116 years agoFrequent Visitor
excellent thanks - I was in full DAX and excel mode with the parenthesis and comma's - this seems like you basically right it out as you would say it!