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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
MyNameHere2213
Regular Visitor

How can I get line axis lables to only show top level of date hierarchy?

I have this old line chart I'm trying to duplicate.  Currently I'm drilled down to the Month level and it's only showing the year on the X axis.

 

MyNameHere2213_0-1721967926842.png

 

On my second visual I have it drill down to the same level (Month), but it's showing the entire Hierarchy in the X axis and I don't want that.

MyNameHere2213_1-1721968039205.png

 

What do I need to do so my second visual is only showing the Year like the first one?

3 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @MyNameHere2213 
Every level of the drill will show the previous + the current hierarchy level...
But
It can be organized much better.
You need just to switch off "concatenated labels"

Ritaf1983_0-1721969405870.png

+

My recommendation is to avoid texts in dates axes and use just numbers .

This method will reduce the number of pixels on the date axis enhances the readability and comprehension of the visualization, as users are already familiar with standard date formats. This space-saving measure allows for a cleaner and more effective presentation of data.

 

Ritaf1983_1-1721969529545.png

The pbix with my example is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Hi @MyNameHere2213 
It depends on the action :
"Expand next level" is showing the previous:

Ritaf1983_0-1722056402636.png

the action "show next level ", not:

Ritaf1983_1-1722056470498.png

According to the axis type that @TomMartens  suggested the selection available only on the highest hierarchy level :

Ritaf1983_2-1722056573712.pngRitaf1983_3-1722056606568.png

 

If you're still having trouble and need more detailed assistance, please attach the PBIX file so we can understand what we're missing.

 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly



Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Click on the down arrow next to Date Hierarchy and select Month.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Click on the down arrow next to Date Hierarchy and select Month.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi @MyNameHere2213 
Every level of the drill will show the previous + the current hierarchy level...
But
It can be organized much better.
You need just to switch off "concatenated labels"

Ritaf1983_0-1721969405870.png

+

My recommendation is to avoid texts in dates axes and use just numbers .

This method will reduce the number of pixels on the date axis enhances the readability and comprehension of the visualization, as users are already familiar with standard date formats. This space-saving measure allows for a cleaner and more effective presentation of data.

 

Ritaf1983_1-1721969529545.png

The pbix with my example is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Both charts in my example are drilled down to the same level.  If every level of the drill will show the previous + the current hierarchy level then why does that not happen on my first chart?  There is apparently a way to do it because my first chart is doing it, I just don't remember because it's been so long since I've made it.

Hi @MyNameHere2213 
It depends on the action :
"Expand next level" is showing the previous:

Ritaf1983_0-1722056402636.png

the action "show next level ", not:

Ritaf1983_1-1722056470498.png

According to the axis type that @TomMartens  suggested the selection available only on the highest hierarchy level :

Ritaf1983_2-1722056573712.pngRitaf1983_3-1722056606568.png

 

If you're still having trouble and need more detailed assistance, please attach the PBIX file so we can understand what we're missing.

 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly



Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

It looks like what is happening is that when the Auto Date/Time setting is enabled my line chart appears like my first example.  When I create a custom Date Hierarchy it appears as my second example.  Looks like this is an artifact of using Auto Date/Time that doesn't also happen with manual Date Hierarchies.

TomMartens
Super User
Super User

Hey @MyNameHere2213 ,

 

check the type of x-axis on the 2nd chart, it should be set to continuous:

image.png

Hopefully, this does the trick.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

There is no Type setting.

 

MyNameHere2213_0-1722005747740.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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