The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |