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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"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





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.