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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.