Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.