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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ChristianDGreat
Resolver I
Resolver I

Sum if status is Invoiced

Hello,

 

I got stuck into these and probably need help.

So I have this table

 

Order IDStatusQty
1Open1
1Open2
1Open2
1Open3
1Open2
1Closed3
1Closed5
1Closed4
2Open1
2Open2
2Open1
2Open1
2Closed1
2Invoiced1

 

The result im looking for is this

Order IDQty
122

 

The logic here is if in the status there's a "Invoiced" it will ignore the order ID of it.

So in this case Order ID "2" has a "Invoiced" Status that means it ignores it in the result.

Order ID "1" doesnt have invoiced so it aggregate the qty. (sum)

1 ACCEPTED SOLUTION
Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1678379123216.png

 

View solution in original post

1 REPLY 1
Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1678379123216.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors