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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.