Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Everyone,
Like the title says I am having some issues calculating future inventory levels (End Stock) for a part my company sells.
As of today, we have 724 units (QTYOH_06) and have a set value for how many units we produce in a week, 320. This value will eventually change, but we want to use a flat 320 for now. I have tried to filter my calculation so it will only subtract the quantities due of this specific part.
On Each "Ship Date", the related quantity will be subtracted from the total. I would like to put the results in a table, so I can show when in the future we will run into a negative inventory quantity for this part. The current measure I am trying to use is:
But this is not exactly achieving what I would like it to. I also have a table that shows how many units were built each day, I am not sure if this would be easier to use than the weekly totals.
Does anyone know how I can fix this measure so I am able to calculate future inventory levels? Any help is greatly appreciated!
Hi @Aurora-BI
Have you created the calendar table and Parts dimension tables in your data model? You can built your required output by the following logic:
Opening stock quantity + Production quantity - Scheduled shipping quantity = Closing stock quantity
You can create the cumulative sum of production quantity and shipping quantity during the period of opening and closing dates. I tried to convert your screen print sample data, but power query "From picture" didn't convert your picture above accurately, so I'd greatly appreciate it if you could paste your data in copy & pastable format for further demonstration.
Do you know how I can provide the data in a pasteable format? I tried to post an excel file with the data but it says the file type is not supported. I think there may be too much data to directly paste the data tables in the reply on here.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
80 | |
60 | |
35 | |
35 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |