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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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