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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
FrailHumanity
Frequent Visitor

Last 2 years based on selected month and year - filtering

Hi,

 

I'd like to filter the last 2 years based on selected year and month slicer. 

 

For example: if I select May - 2023, then I should get data from January 2021 - May 2023.

                     if I select April - 2024, then I should get data from January 2022 - April 2024

 

How can this be achieved? 

8 REPLIES 8
Ahmedx
Super User
Super User

Thanks for trying, can't access this link either.

Ahmedx
Super User
Super User

Nope, sorry doesn't work.

Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RiCP_6hmqArVxIkIW?e=LtA8Dn

 

Sorry but i can't see the pbix file attached.

there is a link, click on it

Apologies, my company VPN blocks me from that link. Could you please attach it here?

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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