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.
Hello Team,
Hope everyone is safe and healthy.
I am looking for help with IF function. I need to create a column where the information from exieting column needs to be modified. I am using the below formula.
Solved! Go to Solution.
@Anonymous Try:
Risk SBU =
IF (
'SCARs'[SBU 2] = "W&P Water & Pro",
"WATER & PRO",
IF (
'SCARs'[SBU 2] = "M&M Mobility & Man",
"MOBILITY & MAN",
IF ( 'SCARs'[SBU 2] = "E&I Electric & Industry", "ELECTRIC & INDUSTRY", "0" )
)
)
Also, use SWITCH instead. Way cleaner.

@Anonymous Try:
Risk SBU =
IF (
'SCARs'[SBU 2] = "W&P Water & Pro",
"WATER & PRO",
IF (
'SCARs'[SBU 2] = "M&M Mobility & Man",
"MOBILITY & MAN",
IF ( 'SCARs'[SBU 2] = "E&I Electric & Industry", "ELECTRIC & INDUSTRY", "0" )
)
)
Also, use SWITCH instead. Way cleaner.

Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!