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
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
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.