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
MEDSEN
Frequent Visitor

Sum Qty With Multiple Criteria in different columns

Hello Comunity, 

Anyone have a solution for this?

On the below Table, I want to sum column "Qty" by distinct "Case ID" for only the the rows that don't have "BOX ID"

 

BOX IDCASE IDQtyDate
D1 11/1/2023
D2C211/2/2023
D3C311/3/2023
D4C411/4/2023
 C511/5/2023
D6 11/6/2023
D7 11/7/2023
D8 11/8/2023
D9C911/9/2023
 C1011/10/2023
D11C1111/11/2023
D12C1211/12/2023
D13 11/13/2023
D14 11/14/2023
 C1511/15/2023
D16C1611/16/2023
D17C1711/17/2023
D18C1811/18/2023
D19C1911/19/2023
1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @MEDSEN ,

 

Please try:

Measure = CALCULATE(SUM('Table'[Qty]),FILTER('Table','Table'[BOX ID]=BLANK()))

Final output:

vjianbolimsft_0-1685337228196.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @MEDSEN ,

 

Please try:

Measure = CALCULATE(SUM('Table'[Qty]),FILTER('Table','Table'[BOX ID]=BLANK()))

Final output:

vjianbolimsft_0-1685337228196.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hello Jianbo Li, 

This is very helpful. Thank you so much for your input. 

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.

Top Solution Authors