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
adoble0214
Frequent Visitor

Inventory Allocation Based on Open QTY

Hello All,

 

I hope this all makes sense: 

 

I am building a report for a customer, and am working through dynamic inventory allocation to the customers open orders. I have been successfull in allocating the items by their product name, however I am needing help on how to create logic that will pull in the next Sales Order needing fulfilled, once the requested order qty has been completed.

 

For Example:

 

I have 5 different Data sources. 1-3 are original imported data, tabels 4 & 5 are merged/calculated tables. 

adoble0214_0-1672857429798.png

Table 1 is all open orders for the customer (1-Sales Order and 2-Item), what item they have ordered (3-Material), & the qty requested (4-Order QTY in lbs):

adoble0214_1-1672857576777.png

Table 2 serves as an informational table, providing the different types of material that the customer orders:

adoble0214_2-1672857776097.png

Table 3 Showcases all the available inventory for the customer, 1-The Material Name, 2-The Serial Number for each item (These are unique to each specific item, and cannot be used more than once), 3-the amount of each item (Lbs):

 

adoble0214_3-1672857858621.png

 

I merged together the Inventory sheet and the open orders to make table 5, with brigning in those serial numbers to the open orders. The Serial number is what the customer uses within their own MRP. The exported data is below. As you can see Sales Order 3170226/4000 was matched by material and pulled in the unique serial numbers successfully. However, the report is allocating all of this materials weight to this one sales order. 3170226/4000's ordered amount is 400,000 lbs, and the merge moved all of the metal in the inventory ( 581,610 lbs) to this order. 

 

adoble0214_5-1672858224508.png

How do I build a function that merges these together, but then looks at the order QTY and sees that once it is met, the next Sales Order requesting that material is used for allocation. I have attached the PBIX File.

 

 

 

2 REPLIES 2
adoble0214
Frequent Visitor

Edit: I am unsure how to add the PBIX File to this post....

Hi , @adoble0214 

Based on your requirements description, I did not fully understand what the expected output of your detailed requirements is, If you want further help, you need to provide the following things: .pbix files with your sample data, pictures with expected output for the sample data you have provided so far, or Excel files to help us understand the needs, and then place them in a cloud disk such as OneDrive and upload them to this case reply to us, because ordinary users do not have permission to provide files directly at the moment.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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