Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a slicer that is currently getting its values from a generated date table and setting the value to the years in the "between" mode. Is it possible to set a default value for a subset of years? Let's say that i have 10 years in total but i would like to show the last 5 years when the user opens the dashboard.
Thanks.
Solved! Go to Solution.
@qmestu , You can use a visual level filter. You can use relative date filter
or create a column like this and use that as filter
Switch( True() ,
Year([Date]) >= year(Today()) -5 && Year([Date]) <= year(Today()) , "Last 5 Year",
Year([Date])
)
@qmestu , You can use a visual level filter. You can use relative date filter
or create a column like this and use that as filter
Switch( True() ,
Year([Date]) >= year(Today()) -5 && Year([Date]) <= year(Today()) , "Last 5 Year",
Year([Date])
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |