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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

 

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

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.


@ 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!:
The Definitive Guide to Power Query (M)

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

 

 


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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