Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

Use dax to populate machine manufacturing capacity



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.








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




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.



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

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors