Forum Discussion
RightParen error in Custom Column
- 6 years ago
Hi Anonymous
You can add a conditional column, it is easier way to achieve your goal.
https://radacad.com/conditional-column-in-power-bi-using-power-query-you-can-do-anything
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi Anonymous,
assuming your are trying to do this in Power Query, the syntax of the if-function is like this:
if test then value_if_true else value_if_falsewithout any paranthesis.
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
- Anonymous6 years agoNot applicable
No this does not work with or wthout parenthesis
Reminder I'm after text not a value
if test then text_if _true else text _if_false
- sturlaws6 years ago
Resident Rockstar
I can't make out what your column name is, but if you add a custom column in power query this is the syntax
if [column name] = "Box Hill" then "Australia" else "Other"Notice that the comparison is case sensitive
Cheers,
Sturla- Anonymous6 years agoNot applicable
I domnt type in the column name I insert it from the list provided
if( [#"Which Centre do you work in?"] = "Box Hill" then "Australia" else (from here a new if test begins)
as soon as I start typing "Australia" the error appears