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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
KellyLen
Helper III
Helper III

Sorting columns in Query Editor

Hello!

 

I have a problem with sorting columns. I have done two queries in two ways: I have one which has data from folder where is only one excel and second one which has data from folder where are several excels (different months' data). If I try to sort whatever column - in query which has only one excel for data, there is no problem with sorting, but in the second one it does not allow me to sort columns. It gives me a following error:

image.png

 

What could be the problem? 

 

It has to be said that every other step I would like to do is possible in both queries, the sorting is the only problem. 

 

Waiting for your ideas,

Kelly 

1 ACCEPTED SOLUTION

4 REPLIES 4
Greg_Deckler
Super User
Super User

Any possibility of posting the data? You might try a Table.Buffer as that often helps with sorting issues, although typically solves an entirely different problem.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Unfortunately I am not able to share data as it is very confidential. But data contains basically text columns and some date columns. I tried the Table.Buffer, but it did not made any difference, it still gave me the same error. 

@KellyLen, have you tried this?

 

https://community.powerbi.com/t5/Integrations-with-Files-and/Expression-Error-The-key-did-not-match-...

 

or this:

 

https://community.powerbi.com/t5/Desktop/powerbi-com-only-The-key-didn-t-match-any-rows-in-the-table...

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Are you able to reproduce the error on an obfuscated data set? Very difficult to solve if it can't be recreated.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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.