Forum Discussion
Anonymous
5 years agoNot applicable
Avoid measure from ignoring slicer using ALL()
Hi. I am trying to display both the current and previous year's sales with a year slicer like so: I am able to dynamically change the year perperly. Though, I want to be able to select t...
- 5 years ago
Hi, Anonymous , you might want to specify column(s) in ALL() function to remove filter(s) on the assigned columns. I think this might do the trick.
TEST, YTD LY = CALCULATE ( [TEST, YTD], DATEADD ( Sales[Date], -1, YEAR ), ALL ( Sales[Date] ) )
CNENFRNL
Community Champion
5 years agoHi, Anonymous , you might want to specify column(s) in ALL() function to remove filter(s) on the assigned columns. I think this might do the trick.
TEST, YTD LY =
CALCULATE (
[TEST, YTD],
DATEADD ( Sales[Date], -1, YEAR ),
ALL ( Sales[Date] )
)- Anonymous5 years agoNot applicable
Thanks so much! It now works as attended.