Forum Discussion
DAX - How calculate a Running Total 2 from previous Running Total 1
- 10 years ago
After various tests, I found a solution. :smileyvery-happy:
Running Tot2 = SUMX(FILTER(ALLSELECTED(DimTime[Date]),DimTime[Date] <= MAX((DimTime[Date]))),[Running Tot1])
After various tests, I found a solution. :smileyvery-happy:
Running Tot2 = SUMX(FILTER(ALLSELECTED(DimTime[Date]),DimTime[Date] <= MAX((DimTime[Date]))),[Running Tot1])
Thank you so much for this post.
I had a similar scenario where I had 2 measures.
Measure 1 had values from the start of a month up to a certain date and blank values after that date.
Measure 2 picks up from where Measure 1 stopped.
I created Measure 3 to combine the 2 and when I created a cumulative value based on Measure 3, the cumulative only worked to tne end of Measure 1.
Using your SUMX formula worked :smileyhappy: