Forum Discussion
Anonymous
9 years agoNot applicable
Running Total - DAX
Hi all, I have an issue calculating running totals. We use a matching chance metric to calculate a forecast. Matching chance Job level = SUMX(VALUES(Table[column1]) ; CALCULATE(MAX(Table...
- 9 years ago
Running Total = CALCULATE(SUM(Table1[columnA]); FILTER(ALL(Table1); Table1[Date] <= MAX(Table1[Date])),FILTER(ALLSELECTED(Table2[columnA]),Table2[columnA]=Table2[columnA]),FILTER(ALLSELECTED(Table1[columnB]),Table1[columnB]=Table1[columnB]))
Then try this way in order to make filter works
FarhanAhmed1984
Resolver III
9 years agoFormula Looks good not sure if VALUES are helping out in this case. Try remove those and see if you are able to do calculations as desired.
Running Total = CALCULATE(SUM(Table1[columnA]); FILTER(ALL(Table1); Table1[Date] <= MAX(Table1[Date])))
- Anonymous9 years agoNot applicable
Thanks for your response FarhanAhmed1984. I think I need to include the VALUES because I want to filter my visual based on Account (name) and Position (status). Or do you see another option?
- FarhanAhmed19849 years ago
Resolver III
Running Total = CALCULATE(SUM(Table1[columnA]); FILTER(ALL(Table1); Table1[Date] <= MAX(Table1[Date])),FILTER(ALLSELECTED(Table2[columnA]),Table2[columnA]=Table2[columnA]),FILTER(ALLSELECTED(Table1[columnB]),Table1[columnB]=Table1[columnB]))
Then try this way in order to make filter works- Anonymous9 years agoNot applicable