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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Jodallen123
Helper I
Helper I

If-statement two levels same measure

Hello,

 

I am new to Power BI and DAX and i am hoping to get some help here.

 

I have a measure called resultvbudget, it just divides sales by budget. If i add this measure to either a table with seller or office it works and gives the correct value.

 

What i am trying to do now is create a new measure that first checks if the office that the seller belongs to has a resultvbudget>=0,8 and if that is true, i want it to check if the seller has a resultvbudget>1. 

 

I want to add the measure to a table with only seller and then see a column with "yes" if both of the above are true, "no otherwise". The page will also be filtered to only show the current month if that matters. 

 

The measure i have now is not working at all. 

 

Measure = 

 

Var officeresult = CALCULATE( [resultvbudget], ALLEXCEPT( 'calc_db users', 'calc_db users'[office] ))

Var sellerresult = CALCULATE( [resultvbudget], ALLEXCEPT( 'calc_db users', 'calc_db users'[seller] ))

Var yesno = IF( officeresult >= 0,8 && sellerresult >= 1, "Yes", "No" )

Return

yesno
 
I am guessing this is really easy to achieve if you are good at DAX, which i am unfortunately not, yet. 
 
Thanks in advance! 
1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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