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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Sisko
Helper I
Helper I

Calculation and IF not work

Hi, I have the following problem:

 

I want to check if 'Not Available' value is 0 and 'Available' values is 'Sum of Materials'. Then it is true other false.

 

Capture1.PNG

 

But when I use this IF conditionol, it not work right:

Column = IF ('WP'[Available] = 'WP'[Sum of Materials] && 'WP'[Not Available] = 0 ,
True(), FALSE()
)

 

This give me separate rows same value:

 

Capture2.PNG

4 REPLIES 4
gauravkh
Frequent Visitor

Seems like you have 2 records with ID = 0013, try aggregating the columns before comparing
Something like:

IF (SUM('WP'[Available]) = SUM('WP'[Sum of Materials]) && SUM('WP'[Not Available]) = 0 ,
True(), FALSE()

Hi, thank you for the reply. I tried your function but it not still work. It return 'True' value to all but know rows are worked right:

 

Capture3.PNG

Can you share the formula you are trying?

Column = (SUM('WP'[Available]) = SUM('WP'[Sum of Materials]) && SUM('WP'[Not Available]) = 0 ,
True(), FALSE()
)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors