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
Gabsanche
New Member

Grouped list for sequence operations

Hi Everyone,

 

I am working with a large list of data representing pending operations that will take place in different work center which are associated with an average time of operation. I want to use that data to display a graph of the future operations that will affect critical work centers. (I have around 10 critical work centers). So far I have been able to transform the data and generate the desired table but it was done in a very manual query that I need to duplicate for each additional critical work centers. I am looking for a more efficient way, where I could use a list of criticals work centers instead of having to create a new duplicated querry for each of them. 

 

These are the columns I'm working with:

Gabsanche_0-1611519865984.png

Work Orders: Is the top hiearchical variable and is composed of multiple operations

Operations: Are chronological numbered operations which are to be applied to the work order

WC: Is the work center ID where the operation is to take place

Waiting Time: Is the average time that should be spent, in days, in that work center.

 

The logicial steps I am using are:

1. Choose 1 critical Work Center (WC), exemple "P22"

2. Eliminate any work orders that do not contain operation associated with work station "P22"

3. For every work orders, eliminate the operations taking place after "P22"

4. For every work orders, Sum the "Waiting Time" of remaining operation

5. Group the work orders with a "count" measure on the sum of time 

 

My resulting table looks like this : 

Gabsanche_1-1611520155862.png

In this exemple, I have selected work center "P22" and the resulting table shows that :

- 11 work orders are to take place in 0 days (basically today)

- 54 work orders are moving to "P22" in 2 days

- etc...

 

Any help and ideas will be much appreciated.

 

Thanks,

 

Gabriel

 

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Gabsanche ,

 

Not the same, but this post may provide some help for you: ETL Through Multiple Pages of a Website in Power B... - Microsoft Power BI Community.

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

StefanoGrimaldi
Resident Rockstar
Resident Rockstar

please share dummy data of it, and specify 2 critical workspace to use as test for a better and quickier answer. its better if you always share dummy data in this type of question for a quickier and better respond. 

but without it you could try making a second query that bring from a external source witch are the critical selected, merge to the main query, and with some grouping and filtering should be on the way to make it them all in one table without needing of extra query. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




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.

Top Solution Authors
Top Kudoed Authors