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! Request now

Reply
Anonymous
Not applicable

If statement help - inserting a range

Hi all,
 
I'm looking to add a range to my If statement below, but I'm struggling. Any help would be appreciated!
 
I need to mark a "1" in a column that contains a number higher than -12 but lower than 1. 
 
Current code is: "SRC sent within 3 day (1/0) = IF('MGA - Complaints (SCANS)'[SRC Difference] (INSERT RANGE BETWEEN -12 & 0) ,1,blank())"
 
Kind regards,
 
Jordan
1 ACCEPTED SOLUTION
edhans
Super User
Super User

I think this is what you want. Change the signs to >= and <= if you want to include -12 and 0

 

Measure =
IF(
    'MGA - Complaints (SCANS)'[SRC Difference] > -12
        && 'MGA - Complaints (SCANS)'[SRC Difference] < 0,
    1,
    BLANK()
)

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
edhans
Super User
Super User

I think this is what you want. Change the signs to >= and <= if you want to include -12 and 0

 

Measure =
IF(
    'MGA - Complaints (SCANS)'[SRC Difference] > -12
        && 'MGA - Complaints (SCANS)'[SRC Difference] < 0,
    1,
    BLANK()
)

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
jdbuchanan71
Super User
Super User

@Anonymous 

Give this a try.

SRC sent within 3 day (1/0) = IF('MGA - Complaints (SCANS)'[SRC Difference] >= -12 && 'MGA - Complaints (SCANS)'[SRC Difference] <= 0, 1, blank())

 

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