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
GenisGomez
Frequent Visitor

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 @GenisGomez ,

 

Please provide some example data and expect result.

 

Best Regards

Community Support Team _ chenwu zhu

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.