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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
I'm creating an inventory dashboard and I need to show the change in inventory for each month.
I have a table that shows current inventory on hand for each time there is a movement in inventory. So if stock is used there is a transaction recorded and if stock is added there is a transaction.
I figure that I need the <opening stock for the month> + <stock received for the month> - <Closing balance for the month>
Can anyone help with the DAX on this?
Thanks.
Solved! Go to Solution.
Thank you for all the suggestions.
The solution was found with the following code:
Thank you for all the suggestions.
The solution was found with the following code:
Can you share some sample non-confidential data which reflects the data you are working with?
Proud to be a Super User!
Paul on Linkedin.
Hi @asafweis ,
Please check this if helps:
Cumulative total – DAX Patterns
You might also consider posting sample data and expected output, it would be helpful.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Thank you, but I can't see a topic that deals with stock consumption for the month.
Here's a list of posts that deal with similar issues: Search - Microsoft Power BI Community
In the Search box you can type in your own query... like, say, "stock balance end of month" and similar.
User | Count |
---|---|
97 | |
78 | |
77 | |
48 | |
26 |