Forum Discussion
dax_bee
9 years agoFrequent Visitor
Create Running Total On A Calculated Measure
Hi. I am trying to create a running total for a field that is defined as a Calulated Measure. Having read numerous posts I am clear about the formula struture which needs to be implemented; ...
- Anonymous9 years ago
Hi dax_bee,
Create running total using the following DAX formula and check if you get desired result.
RunningTotal = SUMX(FILTER(ALLSELECTED('Calendar'[DateKey]),'Calendar'[DateKey]<=MAX('Calendar'[DateKey])),[my_field])If the above Dax doesn’t help in your scenario, please help to share sample data of your table and post expected result.
Thanks,
Lydia Zhang
Anonymous
9 years agoNot applicable
Hi dax_bee,
Create running total using the following DAX formula and check if you get desired result.
RunningTotal = SUMX(FILTER(ALLSELECTED('Calendar'[DateKey]),'Calendar'[DateKey]<=MAX('Calendar'[DateKey])),[my_field])
If the above Dax doesn’t help in your scenario, please help to share sample data of your table and post expected result.
Thanks,
Lydia Zhang
- arsalaankhan8 years agoNew MemberMany thanks for sharing this. Helped big time. I hope you wont mind answering one quick question? When I used this formula, the cumulative total continues to show constant value throughout the x axis even if there is zero value for the later groups. How can we stop running total from continuing all the way? Please advise. Thanks
- dax_bee9 years agoFrequent Visitor
Thank you for all your help.
v-yuezhe-msft - your solution worked a treat!
- fraofempire4 years agoNew Member
Hello everyone, I have to calculate cumulative sum for distinct Ben per day in order to obtain this
My table have these columns:
- punitmicrosoft1 year agoNew Member
THanks a lot. I also had same query .