Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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 (Table[value1] IN ("ABC","DEF,"GHI") AND Table[value2] = 200 ) THEN
'Type A'
Else If (
(Table[value1] = "GGG" AND Table[value2] IN (100,300) )
)
OR
(
(Table[value1] = "III"
)
THEN
'Type B'
Else
'Type C'
End If
Thanks
John
Solved! Go to Solution.
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" ) )
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" ) )
Hi,
Thanks for your reply - that worked.
Thanks
John
By the way, you may help accept solution. Your contribution is highly appreciated.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.