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
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
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.