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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

IF/OR Results

Hello everyone...
 
I'm trying to create a calculated column I can use as a slicer to filter projects that have a budget minus forecast variance of -5 or greater (i.e. -6, -7, -8 too) OR greater than 5. I'm using the expression below but it's returning rows with values in between. 
Does anything jump out as something that needs to be tweaked in the below expression?
  
Change Required = IF(OR('Table'[Budget] - 'Table'[Forecast] < -5,'Table'[Budget] - 'Table'[Forecast] > 5),"Yes","No")
 
Thanks in advance to anyone who can assist.
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

the statement seems good. maybe just a little tuning like

Change Required = 
var _diff = 'Table'[Budget] - 'Table'[Forecast]
RETURN
IF(ABS(_diff) > 5),"Yes","No")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Anonymous 

the statement seems good. maybe just a little tuning like

Change Required = 
var _diff = 'Table'[Budget] - 'Table'[Forecast]
RETURN
IF(ABS(_diff) > 5),"Yes","No")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

I like that much better and it's working. Thank you @az38 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.