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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Calculating state of order based on it's lines

Hello everyone, im quite new to power BI and i found a problem i cant solve by myself.

Basically, i get all my data from a single Direct query from SQL server, the data is order lines with the total quantity of each item, the quantity of the item that has already been cut, the quantity of the item that has already been processed and the quantity of the item that has been packed per line. 

In power BI I created a table that groups the lines by orders, and now i want to use the sum of the different quantities to get a "state", for example, if the cut quantity is less than the total quantity, the state column would show "Waiting for cut", the same with the other quantities. I know how to do this with order lines but no idea how to do it with orders.

Any help would be appreciated. 

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please provide some example data and expect result.

 

Best Regards

Community Support Team _ chenwu zhu

Anonymous
Not applicable

Hi @v-chenwuz-msft,

Here's an example of what i want to achieve 

GenisGomez_0-1665062073476.png

This is obviously a very small example becasue there would be many different possibilities, but as you can see, i wanna display in the status the first part of the process that doesn't equal the total quantity.

Thank you.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors