Forum Discussion
cz1750
8 years agoFrequent Visitor
Nested IF and OR n DAX
Hi, I have been trying to add calcualted columns in Power BI but I keep getting it wrong. Does anyone know how to create a calcualted colum that is based on IFs and Ors like the following? If...
- 8 years ago
try
Column = IF ( 'Table'[value1] IN { "ABC", "DEF", "GHI" } && 'Table'[value2] = 200, "Type A", IF ( 'Table'[value1] = "GGG" && 'Table'[value2] IN { 100, 300 }, "Type B", "Type C" ) )
Zubair_Muhammad
Community Champion
8 years ago
try
Column =
IF (
'Table'[value1] IN { "ABC", "DEF", "GHI" }
&& 'Table'[value2] = 200,
"Type A",
IF (
'Table'[value1] = "GGG"
&& 'Table'[value2] IN { 100, 300 },
"Type B",
"Type C"
)
)cz1750
8 years agoFrequent Visitor
Hi,
Thanks for your reply - that worked.
Thanks
John
- v-chuncz-msft8 years ago
Community Support