Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
P0W3RB1
Helper I
Helper I

Timeline slicer - Limit Range

Hi

 

I have a timeline slicer, it goes all the way back to 2011 but im only intersted in last year and current year. Is there someway of limiting it? it uses a date field from a calendar table, i can see dates that go all the way back to 2011 but how can i exclude them?

 

Thanks

2 REPLIES 2
AlexChen
Microsoft Employee
Microsoft Employee

Hi,

 

For example, you have a table (called “myTable”) like below:

 

1.png

 

You can create a new table with data of this year and last year only :

 

newTable = FILTER(mytable, YEAR(mytable[date]) = Year(Today()) || YEAR(mytable[date]) = Year(Today()) - 1)

 

2.png

 

Now you can create a new slicer with “newTable[date]” and there is only year 2015 and year 2016.

 

3.png

 

Best Regards

Alex

 

 

 

bullius
Helper V
Helper V

Have you tried applying a page or report level filter?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.