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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
bstark1287
Helper II
Helper II

Sum up columns based on date

I have 3 tables of data below. "Current Inventory", "Open requisition orders" to resupply inventory, and "Production Schedule Demand". I am wanting to calculate at what point we will run out of inventory based on the current information. 

Current Inventory
Part #Unrestricted stock
Motor1
Alternator0
Pulley5
Panel16

 

Open requisition orders 
Part #Delivery dateQuantity
Motor6/22/20225
Alternator7/21/20223
Pulley7/21/202210
Panel7/21/20221
Motor 8/24/20225
Pulley9/1/202210
Panel9/1/20225

 

Production Schedule demand     
Part #Job # Required Quantity Required date
Motor12345 1 7/1/2022
Alternator12345 2 7/1/2022
Pulley12345 6 7/1/2022
Panel12345 2 7/1/2022
Motor67890 3 7/30/2022
Alternator67890 6 7/30/2022
Pulley67890 6 7/30/2022
Panel67890 2 7/30/2022
Motor98765 3 7/31/2022
Alternator98765 6 7/31/2022
Pulley98765 6 7/31/2022
Panel98765 2 7/31/2022
Motor43210 1 9/1/2022
Alternator43210 2 9/1/2022
Pulley43210 6 9/1/2022
Panel43210 2 9/1/2022
1 ACCEPTED SOLUTION

Hi @bstrak1287

 

Refer to below as the value displayed -13 for alternator.

 

 

indkitty_2-1658506190600.png

Logic used

current inventory (add a date column which can be 1 day less (Minimum value) than your purchase order/sales order).

Make one table with all data included as below.

current inv - Inital stock.

purchase order - Incoming qty

Work/sales order - consumption. 

 

Create a data table 1 day earlier (as initial stock) and last date as maximum of (work order / purchase order).

 

indkitty_3-1658506394333.png

 

You can download the file from below and work around.

 

https://drive.google.com/file/d/1Bl5qSBtGrnHRhEgN9Sn1kfgQp1gHHFuV/view?usp=sharing

 

Refer to Enterprise DNA, SQLBI for Inventory dashboard.

 

Let me if this solution is accepted.

View solution in original post

11 REPLIES 11
indkitty
Helper II
Helper II

Hi bstark,

 

I think required qty is missing production schedule.

 

@indkitty apologies it was there, it was just formatted in a way it was tough for me to even discern. I have added columns in between other values to make it easier to read. Thank you for letting me know!

@bstark1287 Not a problem. Have you built Power BI Dashboard (i.e Pbix) file. If yes, can you share through Google drive/One Drive?

I am sorry but I am unable to share due to security settings. I tried just copying and pasting into a dummy powerbi file to attach here but I am not able. 

You cannot add here. Share it with Google Drive/One Drive.

@indkitty I was able to upload it here to my onedrive https://1drv.ms/u/s!ApMyUgRWG_6Cjjd7xDi_TJEZgMSF?e=NZPNbb

Hi bstark,

 

I have built using the data posted. 

 

for motor stock runouts on 31/07/2022  (partial competion of orders).

indkitty_0-1658486820625.png

 

for alternator 

starting inventory itself is 0, it can only run on 21/07/2022 with remaining qty. then following orders are blank.

 

indkitty_1-1658486891762.png

 

Let me know if this is what you wanted.

 

 

@indkitty This is really close to what I am looking for! Can you share how you got these results? Basically I would like to have a slicer for the date so if I select say 7/31/22, it would show I have a negative quantity of 5 alternators which will affect job # 67890. Then if I change my slicer to 9/1/22 it would show alternators with a negative quantity of 13. I think if you share how you got this far I could possibly take it the rest of the way. What you have so far is awesome!

Hi @bstrak1287

 

Refer to below as the value displayed -13 for alternator.

 

 

indkitty_2-1658506190600.png

Logic used

current inventory (add a date column which can be 1 day less (Minimum value) than your purchase order/sales order).

Make one table with all data included as below.

current inv - Inital stock.

purchase order - Incoming qty

Work/sales order - consumption. 

 

Create a data table 1 day earlier (as initial stock) and last date as maximum of (work order / purchase order).

 

indkitty_3-1658506394333.png

 

You can download the file from below and work around.

 

https://drive.google.com/file/d/1Bl5qSBtGrnHRhEgN9Sn1kfgQp1gHHFuV/view?usp=sharing

 

Refer to Enterprise DNA, SQLBI for Inventory dashboard.

 

Let me if this solution is accepted.

Hi, @bstark1287 

Can you share your expected results for further research?

Best Regards,
Community Support Team _ Eason

@v-easonf-msft I would like something very similar to the attached below. I have a slicer for the date which affects a custom measure (unrestricted stock - production schedule demand + open requisition orders). I would like to add a drill through to the part # that would show the production orders creating the cumulative total. 

bstark1287_0-1658499388743.png

 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Users online (2,342)