Forum Discussion
Matt_dev
7 months agoFrequent Visitor
DAX Running Total Problem
I have seen versions of this question asked and answered here many times but I can't get any of those answers to work for my situation. I have a dataset called VW3 which contains sales data over d...
- 7 months ago
Try:
GMRunningTotal =
CALCULATE(
SUM(VW3[PL]),
DATESBETWEEN(
SAD[Date],
MIN(SAD[Date]),
MAX(SAD[Date])
)
)If this answer helped, please click 👍 or Accept as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande
lbendlin
7 months agoSuper User
I know I am doing something wrong because GMRunningTotal changes if I alter the value of the dimension slicer but I only want date to affect it.
Don't join the tables if you don't want the filter context to impact your results. Use overrides like REMOVEFILTERS, and consider using window functions instead.