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!Get Fabric certified for FREE! Don't miss your chance! Learn more
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 70 | |
| 60 | |
| 47 | |
| 20 | |
| 16 |