Forum Discussion
Anonymous
9 years agoNot applicable
add conditional column
How to add 'and' under 'add conditional column'? if 'target' is great than 2 and *****, then ***
- 9 years ago
Hi Anonymous
In order to do that you will need to add a Custom Column
The syntax is the following below and NOTE that it is case sensitiveif [Target] > 2 and [Other column] = "Closed" then "My Output Closed" else if [Target] > 1 and [Other column] = "Open" then "My Output Open" else "Other Output"
GilbertQ
9 years agoSuper User
Hi Anonymous
In order to do that you will need to add a Custom Column
The syntax is the following below and NOTE that it is case sensitive
if [Target] > 2 and [Other column] = "Closed" then "My Output Closed" else if [Target] > 1 and [Other column] = "Open" then "My Output Open" else "Other Output"
- Anonymous9 years agoNot applicable
GilbertQ thanks, but i don't really get it. how do i add 'and' in the picture i attached? see above.
- GilbertQ9 years agoSuper UserHi there you would add this as a Custom Column in the Edit Queries in Power BI Query Editor
- Anonymous9 years agoNot applicable
GilbertQ yes, i'm in edit queries/add column/conditional column. but where to add 'and'
for example below, how should i say
if actualstart = 11/07/2017 and (or) ****, then output = 13/07/2017.