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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors