Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 measure when the slicer contains no selection.
The expected result is the following
And when no date is selected, show sales only for 02-2022 to 02-2023
Is it possible to performs this without having to add an independent date slicer ?
Thanks for your help
Solved! Go to Solution.
For an entirely measure approach try something like this:
(Filter measure)
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
Proud to be a Super User!
Hi,
Here is one way to do this:
Data:
Dax:
(with filters, values accroding to slicer):
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
The 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 !
For an entirely measure approach try something like this:
(Filter measure)
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
Proud to be a Super User!
User | Count |
---|---|
21 | |
20 | |
14 | |
10 | |
8 |
User | Count |
---|---|
30 | |
28 | |
13 | |
12 | |
11 |