Forum Discussion
WSeirafi
Helper I
3 years agoCheck if slicer is selected while same dimension is used in chart
Hello, My problem is pretty simple. I have a date Slicer (Year, Month & Day) and a Chart showing sales with Date as an axis. I would like to show only rolling 12 months data on my sales measu...
- 3 years ago
For an entirely measure approach try something like this:
(Filter measure)Measure 44 =IF(ISFILTERED('Calendar'[Year]),1,
IF(MAX('Calendar'[Date]) in DATESBETWEEN('Calendar'[Date], TODAY()-365, TODAY()),1,0)
)
Base measure:
Measure 45 = SUM('Table (28)'[Value])
Place filter measure into filter pane like this:
With filter:
You might need to play around with the dimensions to get the visual you want, but filter measure would be the most logical approach if you don't want new slicers or tables
WSeirafi
Helper I
3 years agoThe solution is great but kinda similar of having another table as a Slicer. My aim was to be able to check if the slicer is selected in DAX even though it might bi filtered via the X-Axis in the visual.
Thanks for your help !
ValtteriN
Community Champion
3 years agoFor an entirely measure approach try something like this:
(Filter measure)
Measure 44 =
IF(ISFILTERED('Calendar'[Year]),
1,
IF(
MAX('Calendar'[Date]) in DATESBETWEEN('Calendar'[Date], TODAY()-365, TODAY()),1,0)
)
Base measure:
Place filter measure into filter pane like this:
Base measure:
Measure 45 = SUM('Table (28)'[Value])
Place filter measure into filter pane like this:
With filter:
You might need to play around with the dimensions to get the visual you want, but filter measure would be the most logical approach if you don't want new slicers or tables