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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Mikekhel1987
New Member

Column Sorting Error

 

Hi All,

 

 


I'm trying to sort the month into the proper sorting but it doesn't work as I search on the internet I found out that I must create an additional column and convert the month word into month number so I've created an additional column to convert the month word into month number. After converting it into numbers I tried to sort our sales  by month number but an error occured. The error says.

"This column can't be sorted by a column that is already sorted directly or indirectly by this column"

 

 

 

error 2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Month Table

Error.png

 

 

 Please do note that the month table is related to the sales and forecast table.

 

Any help will be greatly appreciated. Thank You and God Bless.

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Mikekhel1987,

 

There could be a loop. You can do it like this according to your table.

1. Add an index in the Query Editor.

 Column Sorting Error.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Sort by another column.

Column Sorting Error1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Mikekhel1987,

 

There could be a loop. You can do it like this according to your table.

1. Add an index in the Query Editor.

 Column Sorting Error.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Sort by another column.

Column Sorting Error1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Hi Dale,

 

Thank You for your help. It works just like magic. God Bless.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.