Forum Discussion
Canada321321
9 years agoRegular Visitor
Slicer not interacting with Measure
In the following scenario, does anyone know what changes I need to make to allow the slicer to interact as intended? Here's an example table. I want to display a sum of year to date amounts, filt...
- 9 years ago
Hi, try with this:
YTDRevenue = CALCULATE ( SUM ( Sheet1[Amount] ), FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Division] ), Sheet1[Date] <= MAX ( Sheet1[Date] ) && Sheet1[Account] = 4 ) )
dkay84_PowerBI
Microsoft Employee
9 years agoTry changing your ALL(Sheet1) to specify ALL(Sheet1[Date]) or ALL(Sheet1[Account]) for the second part.
Your measure effectively overrides the filter context of Division because your ALL argument indicates the entire table.
- Vvelarde9 years ago
Community Champion
Hi, try with this:
YTDRevenue = CALCULATE ( SUM ( Sheet1[Amount] ), FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Division] ), Sheet1[Date] <= MAX ( Sheet1[Date] ) && Sheet1[Account] = 4 ) )