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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
J94
Helper I
Helper I

Date hierarchy

Hello everyone,

 

I have a graph with year and month in the x axis, which work nicely (see screenshot). This is coming from a data hierarchy, created by Power BI itself when in Time Intelligence auto date/time is enabled. I prefer not to use this, since it creates tables in de background which slows down the performance. 

 

So, I am looking for a workaround. I do have a monthnyear column as Integer. This isn't working as nice as the date hierarchy, because when you select type as Categorical, it gives me a scrollbar and Continious gives me unequal distances between data points. 

And I can create my own hierarchy with Year and Month, but that gives a scrollbar again. Is there a solution for this which gives the same result as the hierarchy provided when you enable auto date/time? 

Date Hierarchy.png

1 ACCEPTED SOLUTION
quantumudit
Super User
Super User

Hello @J94 

The EOMONTH() function can be utilized to retrieve the last date of the month, formatted as "mmm-yy".

 

This approach ensures that the datatype remains intact, meaning the MonthYear column retains its date/time datatype rather than being converted to categorical.

 

By applying this method, the desired outcome should be achieved. An image illustrating a scenario is attached. Kindly implement the same technique and inform us if the issue persists.

 

quantumudit_0-1748371057411.png

 

Best Regards,
Udit

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

🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
Visit My Linktree: LinkTree

Proud to be a Super User

 

 

 

View solution in original post

2 REPLIES 2
J94
Helper I
Helper I

@quantumudit  thanks, this works exactly as I wished! 

quantumudit
Super User
Super User

Hello @J94 

The EOMONTH() function can be utilized to retrieve the last date of the month, formatted as "mmm-yy".

 

This approach ensures that the datatype remains intact, meaning the MonthYear column retains its date/time datatype rather than being converted to categorical.

 

By applying this method, the desired outcome should be achieved. An image illustrating a scenario is attached. Kindly implement the same technique and inform us if the issue persists.

 

quantumudit_0-1748371057411.png

 

Best Regards,
Udit

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

🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
Visit My Linktree: LinkTree

Proud to be a Super User

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.