Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
12 | |
10 | |
9 | |
8 |
User | Count |
---|---|
15 | |
15 | |
15 | |
12 | |
10 |