Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

if condition dax logic

Hello All,

 

I have dax logic below and I need to check one condition before it and if that has the value 'AMRS' then 0 else I need to execute below logic

 

if region='AMRS' then 0 else my below condition should execute.

Not sure how to write it..

 

Could any one please help

 

 

KPIChatTime = SWITCH(TRUE(),
[Chatmins] <=20, 5,
 [Chatmins] <=25  , 4,
 [Chatmins] <=27, 3,
 [Chatmins]  <=30, 2,
1)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

You could just nest that whole thing in an IF() statement. Like, basically what you wrote:

 

IF( region='"AMRS", 0,

SWITCH(TRUE(),
[Chatmins] <=205,
 [Chatmins] <=25  , 4,
 [Chatmins] <=273,
 [Chatmins]  <=302,
1)
)

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

You could just nest that whole thing in an IF() statement. Like, basically what you wrote:

 

IF( region='"AMRS", 0,

SWITCH(TRUE(),
[Chatmins] <=205,
 [Chatmins] <=25  , 4,
 [Chatmins] <=273,
 [Chatmins]  <=302,
1)
)

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors