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
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
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