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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.