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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AutyDA
Helper I
Helper I

Change axis Date Hierachy based upon a slicer

Hi,

 

I have a series of data which at times I show annually and at times quarterly. I would like the Date Hierachy to change from Year and Quarter to just Year based upon a slicer. Is this possible?

 

AutyDA_0-1725780897479.png

 

 

Thanks,

 

David

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @AutyDA 

 

If you really want to show year and quarter as a hierarchy and be able to change the hierarchy order with a click of a button, your best shot is with bookmarks. Otherwise, you can use field parameters to switch between columns but only one at a time and not a hierarchy - year and quarter column to quarter and year and vice versa.

danextian_2-1725783759725.png

 

danextian_0-1725783701360.png

danextian_1-1725783715258.png

Please see sample pbix










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

AutyDA
Helper I
Helper I

Thank you, that worked!

View solution in original post

3 REPLIES 3
AutyDA
Helper I
Helper I

Hi,

 

I've come back to review this and whilst the solution works the chronological order on the dates gets lose on the dates axis. For example in you chart below 2024 Q1 is followed by 2023 Q1 then 2023 Q2. How can I maintain the chronological order?

AutyDA_0-1726395388256.png

 

 

AutyDA
Helper I
Helper I

Thank you, that worked!

danextian
Super User
Super User

Hi @AutyDA 

 

If you really want to show year and quarter as a hierarchy and be able to change the hierarchy order with a click of a button, your best shot is with bookmarks. Otherwise, you can use field parameters to switch between columns but only one at a time and not a hierarchy - year and quarter column to quarter and year and vice versa.

danextian_2-1725783759725.png

 

danextian_0-1725783701360.png

danextian_1-1725783715258.png

Please see sample pbix










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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