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
KK22
Regular Visitor

How to show the last 13 months only using date hierarchy

Hi,

I need to show the last 13 months on a monthly report as Feb 2021 to Feb 2022,  March 2021 to March 2022 and so on. I would like to keep using date hierarchy because the chart looks neat this way.   However, If I select Year 2021 it's started from January, not March.  If I unselect January it is gone from both years. Is there any additional filtering option?

Thank you.

KK22_0-1648844928181.png

 

 

2 ACCEPTED SOLUTIONS
davehus
Memorable Member
Memorable Member

Hi @KK22 , Would using a relative date filter using your date key work. Set it to is in the last 13 months/calendar months?

View solution in original post

Thank you davenhus, I followed your advice and it worked.

View solution in original post

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

Fairly easy by means of time intelligence func as they invoke ALL() implicitly for evaluation.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Thank you CNENFRNL  for the responce and pointing toward the functions; however it could have been realy useful if the finction  name was mentioned. 

davehus
Memorable Member
Memorable Member

Hi @KK22 , Would using a relative date filter using your date key work. Set it to is in the last 13 months/calendar months?

Thank you davenhus, I followed your advice and it worked.

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.