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
Anonymous
Not applicable

Sum column if another column value is zero

Hey, Trying to create a measure of counting QTY of unit types in a building that do not have a patio by correlating my 'QTY of unit types' column with my 'patio SF' column.

 

 

 4 -  
 1 -  
 4 -  
 1 -  
 3 87
 4 76
 1 70
 1 264
 3 78
 1 78
 1 78
 3 -  
 6 -  
 1 -  
 -   97
 4 74
 4 74
 3 183
 1 74
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

Give this a try.  I am assuming you want to sum the amounts in the first column.  You will need to change the table and field names to match your model.

Non-patio units =
CALCULATE ( SUM ( YourTable[Qty of unit types] ), YourTable[Patio SF] = 0 )

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Anonymous 

Give this a try.  I am assuming you want to sum the amounts in the first column.  You will need to change the table and field names to match your model.

Non-patio units =
CALCULATE ( SUM ( YourTable[Qty of unit types] ), YourTable[Patio SF] = 0 )

 

Anonymous
Not applicable

@jdbuchanan71 

Thank you so much that works!

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