The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi!
Would require help on figuring out a DAX measure on how to properly calculate future projection of the stock based on multiple current dataipoints. The starting should be an Actual figure, after which it should take the calculated amount and have it as a base for next month.
Example:
I have actual data for Stock, Sales and Production until current month, from next month I would need to create a projection where the stock = PrevMonth Stock + PrevMonth Production - PrevMonth Sales.
Given that for fx April, I have all actuals, I would need to base it on those, for future months I would need to have forecast data.
Already have measures to SUM actuals until last month and switching to forecast from current month and onwards.
(Already have DIM Date table to connect all of these)
Stock | Sales | Production | |
Jan (Actuals) | 200 | 100 | 150 |
Feb (Actuals) | 250 | 100 | 50 |
March (Actuals) | 200 | 75 | 75 |
April (Forecast) | March Actuals (Stock + Production - Sales) | 100 | 75 |
May (Forecast) | April FC (DAX Calculated April Stock + Production - Sales) | 75 | 100 |
June (Forecast) | May FC (DAX Calculated May Stock + Production - Sales) | 150 | 100 |
Hopefully this all makes sense.
Thank you!
Hi @VMoza ,
Please review the following threads which has the similar requirement with yours, hope they can help you resolve the problem.
Iterative Stock Cover Calculation
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
121 | |
86 | |
77 | |
55 | |
48 |
User | Count |
---|---|
136 | |
128 | |
78 | |
64 | |
63 |