The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Guys!
I want to do cumulative sum on a calculate column and
I want it resets when sum of values is negative and starts
with the positive value when meets a negative one.
I'll be happy if somebody have an idea!!!
AND it would be the best if you have a DAX formula!!!!
Thanks.
Hi, I am currently facing the same problem, and despite looking for a solution for a long time, I have not found any.
I need a cumulative sum, that does not go below 0. I need to control stock, and it does not make sense for me to have a negative stock, as my demand that is not fulfilled, can not be recovered later.
Did you manage to find a solution?
Thanks for reaching out to us, I find a post Solved: Running total by group with a reset - Microsoft Power BI Community
does it help?
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@mahsan_ojaghian , refer if the old solution can help
If this does not help
Can you share sample data and sample output in table format?
Thanks.
but it did'nt work for me.