Forum Discussion
sloane
5 years agoFrequent Visitor
Need Help with Filters on a running sum
Hi everyone, I have a table that looks something like this; and I want to be able to create a running total of the amount column and have two slicers controlling the output. The first sli...
- 5 years ago
Hi sloane ,
Create a measure as below:
Measure = IF(ISFILTERED('Table'[State]), CALCULATE(SUM('Table'[Amount]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date])&&'Table'[State]=SELECTEDVALUE('Table'[State]))), CALCULATE(SUM('Table'[Amount]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]))))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
sloane
5 years agoFrequent Visitor
Thanks but this still doesnt work when I filter the state slicer. It only works when I filter the country slicer
v-kelly-msft
Community Support
5 years agoHi sloane ,
Create a measure as below:
Measure = IF(ISFILTERED('Table'[State]),
CALCULATE(SUM('Table'[Amount]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date])&&'Table'[State]=SELECTEDVALUE('Table'[State]))),
CALCULATE(SUM('Table'[Amount]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]))))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!