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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
BlueMinnowBPS
Regular 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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

 

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
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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