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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors