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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
cath1ynn
Resolver II
Resolver II

Sort by another column error

I've ran into this annoying Sort by another column error that I can't work out how to resolve because there are no duplicates!

 

I am trying to sort the month name (text) by the FinancialMonth field (whole number) and I keep getting this 

 

 

We can't sort the 'responseDateTZ_Month' column by 'ResponseDateTZ_FinancialMonth'. There can't be more than one value in 'ResponseDateTZ_FinancialMonth' for the same value in 'ResponseDateTZ_Month'. Please choose a different column for sorting or update the data in 'ResponseDateTZ_FInancialMonth'.

 

 

cath1ynn_0-1720482888156.png

However, as you can see in the next screenshot, there are no duplicate values for ResponseDateTZ_Month to ResponseDateTZ_FinancialMonth nor the reverse.

 

cath1ynn_1-1720482936685.png

I'm not sure what else to check.

 

I should mention that these fields are in the same table.

 

cath1ynn_0-1720483084325.png

 

 

 

 

 

10 REPLIES 10
Anonymous
Not applicable

Hi  @cath1ynn,

This issue has been submitted internally.

 

Please be patient to wait for fixing. If there is any news, I will update it here.

 

Best regards,

 

Joyce

 

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

 

Hi @Anonymous 

Have there been any update on this issue?

Anonymous
Not applicable

Hi @cath1ynn ,
The fix is in the main program and we are waiting for it to roll out.

Anonymous
Not applicable

Do you have a link to the issue and/or the issue id-number so I can follow the status?

cath1ynn
Resolver II
Resolver II

Ok, I have the same error happening to another datasource in the same report and this time, I was able to export some sample data to CSV and import it into another Power BI report and was able to recreate the error in this sample Power BI report.

 

How do I upload the sample files here?

I think I have worked out when this error occurs. With my initial dataset where I was having problems with the ResponseDate field, the reason I stopped having problem with the field after refreshing the dataset was because after refreshing, there were no longer records that are missing ResponseDate values. Whereas in this second dataset, there are many records with missing ClosedDate values because they haven't been closed out yet. I realised this when I attempted the Sort by column on the CreatedDate Month field and realised that I didn't get this error, because every record would have a CreatedDate.

 

I tested this theory by creating a copy of the sample dataset containing only the Id and the relevant ClosedDate fields, then filtering this dataset to only contain records that have a ClosedDate value. I've discovered that I am now able to sort the Month field by the FinancialMonth. If I then go back into Power Query and removed the step where I filtered the data on the ClosedDate field, the Sort by column on the Month field is still working correctly.

 

cath1ynn_0-1720499799422.png

 

However, when I attempted this workaround in the original sample dataset by applying a non blank filter on the ClosedDate field in Power Query then trying to apply the Sort by column on the Month field in Desktop, I get the same error again 😢

 

I'm out of ideas again...

 

Here's the link to the sample PBIX file

foodd
Super User
Super User

Hello @cath1ynn , and congradulations on self solving your issue. 

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.  Proud to be a Super User!

cath1ynn
Resolver II
Resolver II

You would not believe this but after refreshing the data in preparation to export it to CSV to build another PBIX file to upload, it seems to have fixed itself and now I am able to sort the Month field by the FinancialMonth field 🤔 I made no change to the data model and this wasn't even the first time that I have refreshed the data either. I was butting my head against the wall all of yesterday's afternoon with this error and now it just fixed itself 😠

 

cath1ynn_0-1720487503566.png

 

Had the same problem, but my sort by column was a DAX lookupvalue. The lookup table had duplicates, I fixed that but then even with no duplicates it would not accept it. Fixed it by just deleting the column and re-entering it with exactly the same DAX code. It is like PowerBI will not clear the error status of the sort by column.

ryan_mayu
Super User
Super User

could you pls proivde the pbix file?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.