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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
miguelp06
Frequent Visitor

Filter or selection

Hi all,

 

I have data from 8 years. Need to add 3 bottons (for example) for:

  • Last 5 years
  • Last 3 years
  • Actual year

Anyone can help?

Thanks

Miguel

2 ACCEPTED SOLUTIONS
PijushRoy
Community Champion
Community Champion

Hi @miguelp06 

Hope you have calender/datetable/year in your dataset.
You can implement 2 approach

Bookmark
Apply Year filter at Page level or visual level for 5 years, create a Bookmark
Apply Year filter at Page level or visual level for 3 years, create a Bookmark
Apply Year filter at Page level or visual level for 1 years, create a Bookmark
Create 3 button and assign the bookmark in Action

Tab
Create separate page for 5 years, 3 years, and current year
Create 3 buttons and assign the page navigation in Action

If solve your requirement, please mark the comment as SOLUTION

Thanks
Pijush





Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

zenisekd
Super User
Super User

@miguelp06  I would also consider using "Relative date" style of the date slicer. You have to do few more clicks, but gives you more options and less work and administration.

zenisekd_1-1703151418501.png

 

zenisekd_0-1703151342577.png

Kudos and mark as solution appreciated 🙂

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @miguelp06 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please feel free to let me know.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

miguelp06
Frequent Visitor

@PijushRoy , thanks

I will try

zenisekd
Super User
Super User

@miguelp06  I would also consider using "Relative date" style of the date slicer. You have to do few more clicks, but gives you more options and less work and administration.

zenisekd_1-1703151418501.png

 

zenisekd_0-1703151342577.png

Kudos and mark as solution appreciated 🙂

Thanks @zenisekd 

PijushRoy
Community Champion
Community Champion

Hi @miguelp06 

Hope you have calender/datetable/year in your dataset.
You can implement 2 approach

Bookmark
Apply Year filter at Page level or visual level for 5 years, create a Bookmark
Apply Year filter at Page level or visual level for 3 years, create a Bookmark
Apply Year filter at Page level or visual level for 1 years, create a Bookmark
Create 3 button and assign the bookmark in Action

Tab
Create separate page for 5 years, 3 years, and current year
Create 3 buttons and assign the page navigation in Action

If solve your requirement, please mark the comment as SOLUTION

Thanks
Pijush





Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.