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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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