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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Volume weighted Average inventory age

I have read through some previous posts but have not been able to apply the solution to my problem.  This is a long standing problem and I currently calculate the answer, manually, when someone asks; usually because there is a problem.  My goal is to provide this information on a daily basis so that inventory can be rotated properly and not just when it gets close to use by date.

 

Below is some of my data.  Based on the current day; I want to calculate the volume weighted average age of the inventory in each bay.  When inventory is removed, I want to calculate the volume weighted average age of the inventory removed.  I'm only showing data for 1 mill but I have multiple mills to calculate the same information.  Currently, each mill has a separate page in a spreadsheet and I pull them into Power BI as separate tables.  I would also like to know if it would be better/easier/more efficient to put all the mills into the same sheet.  

 

Thanks

 

LocationDateBay ## loads placed or removedtons placed or removedInventory (loads) Inventory (tons)  
        
Mill A3/19/2019220584.820        585 
Mill A3/20/20192511475.071     2,060 
Mill A3/21/2019225685.896     2,746 
Mill A3/25/201914115.8100     2,861 
Mill A3/26/20191259.9102     2,921 
Mill A3/27/2019111339.5113     3,261 
Mill A3/28/201919263.6122     3,524 
Mill A3/29/2019113377.1135     3,901 
Mill A4/1/20191396.8138     3,998 
Mill A4/2/2019116470.5154     4,469 
Mill A4/3/2019119517.9173     4,987 
Mill A4/4/20191257.4175     5,044 
Mill A4/10/2019113338.1188     5,382 
Mill A4/12/20191254.5190     5,437 
Mill A4/15/2019131837.4221     6,274 
Mill A4/16/2019125684.5246     6,958 
Mill A4/18/201919253.9255     7,212 
Mill A4/23/20192(23)(437.0)232     6,775 
Mill A4/24/20192(25)(475.0)207     6,300 
Mill A4/25/20192(21)(399.0)186     5,901 
Mill A5/2/2019216450.2202     6,351 
Mill A5/3/201928208.5210     6,560 
Mill A5/7/2019112322.6222     6,883 
Mill A5/8/2019118491.1240     7,374 
Mill A5/14/2019123592.8263     7,966 
Mill A5/15/2019112326.2275     8,293 
Mill A5/16/2019125647.6300     8,940 
Mill A5/17/2019124617.9324     9,558 
Mill A5/20/2019128748.6352    10,307 
Mill A5/21/2019122555.8374    10,863 
Mill A5/22/20191379.1377    10,942 
Mill A5/22/201938194.5385    11,136 
Mill A5/28/2019326637.2411    11,773 
Mill A5/29/2019335897.8446    12,671 
Mill A5/30/2019330762.8476    13,434 
Mill A5/31/2019318458.3494    13,892 
Mill A6/3/2019334865.6528    14,758 
Mill A6/4/2019316426.5544    15,184 
Mill A6/5/201939244.3553    15,429 
Mill A6/6/2019317431.8570    15,860 
Mill A6/11/20192(26)(520.0)544    15,340 
Mill A6/12/20192(7)(140.0)537    15,200 
Mill A6/26/201928199.2545    15,400 
Mill A6/27/20192(27)(486.0)518    14,914 
Mill A6/28/20192(25)(625.0)493    14,289 
Mill A7/1/20192(11)(198.0)482    14,091 
Mill A7/9/20192(17)(215.4)465    13,875 
Mill A7/10/20192(7)(108.0)458    13,767 
Mill A10/30/20191(23)(437.0)435    13,330 
Mill A10/31/20191(21)(525.0)414    12,805 
Mill A11/1/20191(10)(250.0)404   12,555 
Mill A11/4/20191(22)(550.0)382    12,005 
1 REPLY 1
v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

I'm a little confused by your description: "I want to calculate the volume weighted average age of the inventory in each bay.  When inventory is removed, I want to calculate the volume weighted average age of the inventory removed. "

Could you share your calculation logic and your expected output? The calculation of the weighted average in the new quick measure in the desktop may be helpful.101.PNG

About put all the mills into the same sheet, you can take a look at the video below:

Consolidate Excel Sheets with Power Query

Best Regards,

Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.