Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all,
I am trying to calculate week over week inventory - this is what my data currently looks like:
But I need the end inventory to be the starting inventory for the next week like this:
Thanks in advance!!
Hi @Anonymous ,
Create a separate Dates table (if you don't have one yet) and use the week start from that table in your visuals. Then create this measure.
Start/Opening inventory =
CALCULATE (
MAX ( data[ending inventory] ),
FILTER ( ALL ( datestable ), datestable[week] < MIN ( data[week] ) )
)
Please refer to attached pbix files for the dates table and sample calculation of opening balances.
Hi - thanks for the response! I am getting this error:
Not sure if this helps, but my starting, change, and end inventory are all measures not a column. All of my tables are connected by date.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 43 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |