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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

sort months into chronological order

Maleehah_0-1628169368718.png

This is the error message I keep getting as its the rolling column which I have in my visual which needs sorting I think, as every other column which has been sorted has not affected the order. 

2 ACCEPTED SOLUTIONS

Hi, @Anonymous 

 

You can create a sorted table, then establish a one-to-many relationship between the sorted table and the main table, use the RELATED function to create a sorting column in the main table, and finally make the rolling column sort by the sort column.

sample:

vangzhengmsft_0-1628503422027.png

result:

vangzhengmsft_1-1628503497536.png

Please refer to the attachment below for details

 

 

Hope this helps.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi, @Anonymous 

 

I noticed that the value in your sort table is "Rest of the Year", but the mapped value in your main table is "Rest of the Dates", and the value is different causing this to not correctly identify the sort order.

vangzhengmsft_0-1628557193593.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng

 

 

View solution in original post

9 REPLIES 9
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

 

According to the above error message, the same value in the Rolling column has multiple sorts in the sorting column, so it cannot be sorted normally. Multiple values in the Rolling column can be allowed to have the same order in the sorting column, but the same value in the Rolling column is not allowed to have a different order in the sorting column, which will make PowerBI confused. So check the value of the rolling column, update the relationship between the rolling column and the sorting column (1:1 or *:1), and try again.

vangzhengmsft_0-1628493511957.png

Hope this helps.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hiya thanks for the reply.

How do I make them *:1 in the same table?

Hi, @Anonymous 

 

You can create a sorted table, then establish a one-to-many relationship between the sorted table and the main table, use the RELATED function to create a sorting column in the main table, and finally make the rolling column sort by the sort column.

sample:

vangzhengmsft_0-1628503422027.png

result:

vangzhengmsft_1-1628503497536.png

Please refer to the attachment below for details

 

 

Hope this helps.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Small issue im now having.

 

I have 6 months values being shown and rest of the year/s totaled at the end, however, 'rest of the year' is showing up before the final month in my 6 months which is January. 
heres some pics for reference:

Maleehah_0-1628508463178.png

Maleehah_3-1628508518734.png

 

 

Hi, @Anonymous 

 

I noticed that the value in your sort table is "Rest of the Year", but the mapped value in your main table is "Rest of the Dates", and the value is different causing this to not correctly identify the sort order.

vangzhengmsft_0-1628557193593.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng

 

 

Anonymous
Not applicable

That sorted the issue, thank you!!

Anonymous
Not applicable

You are a genius! 
Thank you so much!

Hi, @Anonymous 

 

This is explained as a one-to-one and one-to-many relationship for the convenience of understanding. It refers to the mapping relationship between your rolling column and the value of the sorting column, rather than establishing a relationship for different tables in the model.
I am not clear about your data model. The mapping relationship between your rolling column and the sorting column value is determined by the column value, which depends on the value generated by your rolling column formula.

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

StefanoGrimaldi
Resident Rockstar
Resident Rockstar

hello, 

 

1) first check the sorting column you using as reference its in number format

2) you can just sort the table by the same column month and will have the same effect, now if you want a more organize sort, sort by the entire date, if what you want its all the data of the table sorted on that particually fiel do it on the same column refence for sorting and there should be fine





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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