This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
I have tried to get this to work and have searched all available resources to figure out how to transfer ending inventory to the next day's beginning inventory. I have a table (Inventory) that is always "Today's" inventory. I need to add production, subtract shipments to come up with ending inventroy for "Today", then roll today's ending to tomorrow's beginning etc. etc. Easy in excel, thought it would be straightforward in PBI but for some reason I just havent been able to get it to work. Help Please!
Any reason day 0 closing inventory wont transfer to day +1 opening inventory? Days after +1 all work correctly. I double checked all DAX to make sure it matches your example2 file.
No idea. If day 3 onwards are working fine, day 2 should work fine as well. Recheck all the measures.
Here is your example2 file when I drop dim_date[cal_date].
Everything works just fine on my file. I do not know the mistake that you are committing.
@kjkreik , Inventory need to be calculated in a cumulative manner
Beginning of Time(BOT) Inventory + Purchase till date from BOT - Sales till Date
Inventory / OnHand
[Intial Inventory] + CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <=Min(date[date]))) -
CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <=Min(date[date])))
Inventory / OnHand
CALCULATE(firstnonblankvalue('Date'[Month]),sum(Table[Intial Inventory]),all('Date')) +
CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <min(date[date]))) -
CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <min(date[date])))
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 24 | |
| 20 | |
| 20 | |
| 19 | |
| 19 |