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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors