This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
First time posting, so go easy ![]()
I have two tables, one which shows my current inventory at any given time,
I have a separate inventory transaction table.
i want to create a running total of my inventory by reversing all my inventory transactions from today, starting with the current inventoy on hand number.
not sure how to create a running total starting with the current on hand?
thanks for any help.
Solved! Go to Solution.
I think i solved my issue by making a column like this
@nmerl ,
About how to write DAX on running total, you may refer to this tutorial: https://www.daxpatterns.com/cumulative-total/.
In addtion, if you still can't solve this issue, please share some sample data and expected result.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
| table 1 | ||
| Current inventory | ||
| apples | 6 | |
| bananas | 3 | |
| Table 2 | ||
| Iventory Transactions | ||
| 3/27/2019 | apples | -5 |
| 3/26/2019 | apples | 3 |
| 2/1/2019 | bananas | 1 |
| 1/1/2019 | pears | -5 |
Lets say these are my two tables, i am able to get the running change of each item from the transaction table, but i want to add that starting number for my current inventory and then work backwords,
so i can say today i have 6 apples, i sold 5 yesterday, so i must have had 11 apples in house. etc.
as a second part, which might add more complications, today i have no pears in stock, i sold my last 5, so on Jan 1, i must have had 5
Any ideas how i can link the 2 tables, and make sure that i am doing my math in reverse date order
i've been plowing ahead, and thought i was making great progess, until i unfiltred my data, and allowed all items into my query, previously, i had been working with only one item, and thought i could build the logic and all would be good.
i combined my transaction table, and inventory on hand table, i was set a transaction date to the future, for my Inventory on hand, then calculated the reverse of my transactions, so i can go back, and build up my inventory.
I added a column for running total, which works perfectly, with only one item, but i need it to make a new running total for each item.
this is what i have in my running total column.
I think i solved my issue by making a column like this
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 27 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 25 | |
| 24 |