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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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