Perpetual Average Cost Inventory Method - Average Inventory Price Calculation Variable HELP

Hi there!

I am trying to calculate my inventory totals using Perpetual AVCO method (https://xplaind.com/840515/avco-method).

My main goal is to account for correct inventory value after each inventory purchase. Every time I purchase items, the average price of TOTAL inventory changes, but every time the sale is made, only Inventory Q-ty goes down and price stays the same until I purchase items again and it recalculates. I have done some explanation for you by using T Accounts in my Excel file:

The main idea here is to create a column, where price of inventory updates every time the purchase is made, so whenever I sell inventory, I can keep track of the amount of Inventory Sold, Sales Amount and Revenue/Profit that is created in between. Here is a snippet of how I envision that:

Here is PBIX file:
Perpetual AVCO Inventory valuation using DAX.pbix (370.4 KB)

Please help me creating a measure/variable for that. I have gone through a similar question on your forum, but the guy had the value of the inventory hardcoded and not suitable for my application.

Hi @pravdon1 ,

Thank you for sharing this. I enjoy to see inventory method and T-Accounts and practical example (bring lots of great memories from that days).

To get :

I create this 2 measures to create New Perceptual Average

  • Cummulative Purchase GLOWKA (PLN)

  • Cummulative Weight (t) - on top of Total Buy Weights:

Total BUY Weights = CALCULATE(SUM(FIFO_Append[Weight (t)]),FIFO_Append[Buy/Sell]="BUY")

and Calculate Average Unit Price by dividing this 2.

After that create New END Inventory (PLN) as Average Unit Price *End Inventory Qty

New END Inventory (PLN) = [END Inventory] *'New Measures'[New Perpetual Average Unit Cost]

PBIX file:
Perpetual AVCO Inventory valuation using DAX example for pravdon1.pbix (371.4 KB)

(all New measures you can find at New Measures folder)

Hope it helps.

1 Like

Wait @mspanic, I think I found a mistake in this logic. It is not that simple just to divide Cum. Purchase by Cum. Weight. If you look carefully into May transactions, you can see that by the end of May 1, we have 0.44 t left at the price of 1821.73 (801.56 PLN). Then on May 4 we purchase 20.4 t @ 2000/t (40800 PLN). Eventually, our New END Inventory PLN should be 40,800 + 801,56 = 41,601,56 PLN, which gives us the New Perpetual Average Unit Cost @ 1996.23 PLN, not 1881.31 PLN.

The idea here is to write a code that would take END Inventory value after each SELL to substitute the previous maximum (40.64 in this case) in the “Cumulative Weight (t)” column.

Also “New END Inventory (PLN)” must be a sum of previous value and “Purchase GLOWKA (PLN)”.

Hi @pravdon1, thank you for checking and additional notes.

Sorry I was stuck with my new project (just started) and get out of time.

I manage to update Cumulative weight(t) columns as you mentioned in the previous post and add Indicator Inventory Entry Type
1- BUY
2- SELL
3- SWITH (First BUY after SWITCH)

image

Also add a cumulative columns with reset at switch. It need additional updates, but I am posting as it is.

I put new measures in folder New Additional Inventory Measures

PBIX file:
Perpetual AVCO Inventory valuation using DAX example for pravdon3.0_WIP.pbix (373.6 KB)

1 Like

Yeah, weights are working well! Thank you!

The hardest part here is to keep the previous $ stock value and and add it to the new stock purchase value (801.56 + 40.800 = 41.601,56)

I have started having nightmares over this one =(

Hello @pravdon1

Did the response above help solve your query?

If not, can you let us know where you’re stuck and what additional assistance you need?

If it did, please mark the answer that helped you as the SOLUTION.

Thank you

Hi @pravdon1 ,

Due to inactivity, a response on this post has been tagged as “Solution”. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box.

Thanks to @mspanic for contributing on this post.

We request you to kindly take time to answer the Enterprise DNA Forum User Experience Survey,

We hope you’ll give your insights on how we can further improve the Support forum. Thanks!