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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Carousel June 2024

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

2
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.