This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi guys,
I have a bit of an issue here which I've been struggling with.
I have a slicer in my report that currently has a date range that is 01/08/2022-Today() based on dates from a date table. I need this slicer to be dynamic so that it starts on 01/08 but the year should remain 2022 until 01-08-2023 to which a 'new academic year' has started.
So essentially until the 31st of July 2023 the date range will remain 01/08/2022-Today(), but once it's 01/08/2023 the slicer will dynamicly update to start at that range (This will need to continue for 2024, 2025, 2026, etc).
Any ideas on how to achieve this?
Solved! Go to Solution.
Could you add a column to your Dates table like this?
Current Range =
VAR _Today = TODAY()
VAR _Year = IF ( MONTH ( _Today ) < 8, YEAR ( _Today ) - 1, YEAR ( _Today ) )
VAR _Start = DATE ( _Year, 8, 1 )
VAR _End = EOMONTH ( _Start, 11 )
RETURN [Date] >= _Start && [Date] <= _Today
Then you set a filter on 'Dates'[Current Range] = True on either the slicer or the page.
Could you add a column to your Dates table like this?
Current Range =
VAR _Today = TODAY()
VAR _Year = IF ( MONTH ( _Today ) < 8, YEAR ( _Today ) - 1, YEAR ( _Today ) )
VAR _Start = DATE ( _Year, 8, 1 )
VAR _End = EOMONTH ( _Start, 11 )
RETURN [Date] >= _Start && [Date] <= _Today
Then you set a filter on 'Dates'[Current Range] = True on either the slicer or the page.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |