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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

@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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

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!:
DAX For Humans

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!:
DAX For Humans

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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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