Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Team,
I have a custom scenario for date slicer between.
I have a dashboard which contains a Date slicer(between) for user to select different month of data, the data will refreshed every day.
However, I don't know how to make the slicer automatically pointing to the last 30 days from refresh date or MAX(date) available in table.
From date as 30 days before date and To date is last refresh date or MAX(date) available in table.
The above scenario should work when user clicks the report page or navigate from different page.
As a second scenario after seeing the last 30 days data in the same page/screen, if the user selects the from_date and to_date in the between slicer based on the slicer it should reflect the data in screen.
Has any one come across this situation scenario?
Thank you.
Solved! Go to Solution.
Why not use the Relative Date options in the Filter Pane?
Hello @ssspk ,
As suggest by other you can use "Relative Dates" filter and also as an alternative you can create calculated column in your table which can be used as slicer for last30days..
Use this code below
IsInLast30Days =
VAR MaxDate = MAX('YourTable'[DateColumn])
RETURN IF(
'YourTable'[DateColumn] >= MaxDate - 30 && 'YourTable'[DateColumn] <= MaxDate,1,0)
If you find this helpful , please mark it as solution and Your Kudos/Likes are much appreciated!
Thank You
Dharmendar S
Why not use the Relative Date options in the Filter Pane?
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |