Forum Discussion
Filtering Running Total
- 6 years ago
Try this measure instead. Filtering the whole Sales table is affected your filters more than you intended. Note that I changed your ALLSELECTED() part too. If this doesn't work, you can change it back to ALLSELECTED('Sales'). I don't know your model, so could be either way.
M Filtered Sales SUM running total over Date =
CALCULATE(
SUM('Sales'[Value]);
'Sales'[Country]="Brazil";
FILTER( ALLSELECTED('Sales'[Date]); 'Sales'[Date] <= MAX ( 'Sales'[Date] ) ))If this solution works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Try this measure instead. Filtering the whole Sales table is affected your filters more than you intended. Note that I changed your ALLSELECTED() part too. If this doesn't work, you can change it back to ALLSELECTED('Sales'). I don't know your model, so could be either way.
M Filtered Sales SUM running total over Date =
CALCULATE(
SUM('Sales'[Value]);
'Sales'[Country]="Brazil";
FILTER( ALLSELECTED('Sales'[Date]); 'Sales'[Date] <= MAX ( 'Sales'[Date] ) ))
If this solution works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat