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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
hassan_d
Frequent Visitor

Use dax to populate machine manufacturing capacity

Hello,

 

I am looking to use the capacity of machines 1,2 and 3 in the most efficient way possible to prepare the orders of products a,b,c,d and e.

 

hassan_d_0-1665732109620.png

 

      

hassan_d_1-1665732109473.png

 

 

Only a certain type of products can be manufactured in each machine.

 

hassan_d_2-1665732109472.png

 

Can anybody suggest how to achieve this with dax, either:

  • Populate each machine in the optimal way to their maximum capacity - when orders exceed capacity, the exceeding orders should be distributed as equally as possible among all machines that can manufacture those products.
  • or, let the user select which product they want to make in each machine - once a product has been selected and is being made in a certain machine, it should not appear as an option in the other machines.

 

Thanks.

1 REPLY 1
lbendlin
Super User
Super User

Power Query can do some of this with List.Accumulate,  but DAX is conceptually unable to do this.

Power BI has no memory, and no concept of global variables (or variables at all- What Power BI calls "variables" are in fact all constants).

You will likely need to do that work in the upstream system.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.