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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kstabler
New Member

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

@kstabler 

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

@kstabler 

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 )

 

@jdbuchanan71 

Thank you so much that works!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.