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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
BlueMinnowBPS
Frequent Visitor

Date Heirarchy on Column and Line Charts - Grouping and not Ordering?

I have some gas consumption data from Sep 2024 to Jan 2025. For some reason, Power BI is putting the Jan 2025 data infront of the 2024 data. Is it because it's just grouping the months without the year context? How do I fix this? Thanks!

 

 

BlueMinnowBPS_0-1736294817688.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @BlueMinnowBPS,

I'd like to suggest you create a new field to store the fiscal year month and use this as category of the visual. It should help you to group the records to the correct date ranges.

For fiscal year month field(text type) sorting, you can refer to the following link:

Custom Sorting in Power BI  

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

HI @BlueMinnowBPS,

I'd like to suggest you create a new field to store the fiscal year month and use this as category of the visual. It should help you to group the records to the correct date ranges.

For fiscal year month field(text type) sorting, you can refer to the following link:

Custom Sorting in Power BI  

Regards,

Xiaoxin Sheng

So I extracted only the Date from the Date/Time column, this appears to have resolved my issue and the heirarchy is ordering the columns properly now.

BlueMinnowBPS_0-1736557927784.png

 

FYI, don't add the new date field to the visual and remove the old date/time field, it won't update the visual to add the year context. Deselect the date/time field first, then add the new date field. Power BI still glitchy after all these years...

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your calendar dimension table looks like, but I assume that the current situation is, 

-> Month name is sorted by month number.

 

Instead, please try something like, 

-> Month name: sort by fiscal month number

 

Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

It's not a dimension. It's just a column within the Fact table with date/time as data type.

There's no sorting. If you select the the month, there's no column options.

BlueMinnowBPS_0-1736557037517.png

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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