Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I am trying to plot a stock level forecast which is simply the current stock level as a starting point. Each future month should deduct the sales average and add the incoming stock based on stock arrival dates.
I am using the following to calculate my rolling 12 month sales average:
If I was writing code in C I would simply create an array then retrieve the last known value as the first entry. From there a simple loop to iterate through the future dates and -= the average from from the previous value. But DAX and Power Query aren't simple enough to logic my way out of this.
Hi @Revolution ,
Can you provide some detailed data (without sensitive information) combined with the results you are trying to get so that we can better understand and help you solve the problem you are experiencing.
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I want to forecast stock levels by taking the current stock and deducting the daily sales average every day from the curent date for x number of days into the future.
I have a rolling 12 month AVERAGEX measure for the daily sales average and I have the current stock level for each stock item in an inventory table. I'm just not sure how to create this new table that begins with the current stock level today and will deduct the daily sales average from each subsequent day on my date table (which includes dates 6 months into the future).
I don't feel that sample data is necessary to point me in the right direction but I can do if it is required.
My next challenge will be to add incoming stock to the forecast...
User | Count |
---|---|
58 | |
46 | |
19 | |
18 | |
15 |
User | Count |
---|---|
116 | |
41 | |
40 | |
28 | |
22 |