Forum Discussion

TTS's avatar
TTS
Frequent Visitor
3 years ago
Solved

Previous month loop - inventory value measures

I have inventory data so that I have Inventory Amount, Usage Amount, and Add Amount for the current month.
I am able to calculate an on-hand value for the current month easily; Inventory-Usage+Add.

For future months I have only Usage Amount and Add Amount.

What kind of measures do I need to create when I want to calculate On hand value over time for the future?
So the current month's on-hand value is starting inventory amount for the next month which I use to calculate the on-hand value.

e.g.

MonthInventoryValueNeedAmountAddAmountOnHand
03-20231005020100-50+20=70
04-2023 302070-30+20=60


The idea is to create a report that shows the current inventory value and ending on-hand value based on the need and add transactions placed for the future.

I have 'Date' table and all three facts are placed on own tables (inventoryamount, needs, adds).