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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.