cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Multible column sorting problem

Hi,

 

I'm having a problem with multiple column sorting. In this case the dataset is about 100 000 row which I want sort based on 3 columns. In all columns that are used for sorting the data type is text and format as follows (1234_1_1; 5678; 1). When I apply the sort, the it is not as expected. However, if I take an small subset of the data sorting works as expected. Sorting with the whole dataset works correctly also in Excel. The first sorting column (1234_1_1) is concatenated, however, even if do the sorting based on the original values (numbers as text) the sorting fails. Result is the same if I change the data type as numbers. Any ideas? Example what I'm hoping to get below.

 

Thank you

 

Mikko

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Multible column sorting problem

Thanks for your reply. I did some futher tests and the Power Query sorting works. The reason for sorting is to do data clening using "remove dublicates" after this. However, even if the sortig works on the Power Query side the rows are not sorted as expected in the Data view with this data set. Not sure if Power Query sorting should affect the data view but it would be very strange if not.

View solution in original post

4 REPLIES 4
Highlighted
Frequent Visitor

Re: Multible column sorting problem

Capture.PNG

Highlighted
Anonymous
Not applicable

Re: Multible column sorting problem

Hi @Anttonen,

 

Try splitting col1 into 3 columns with "_" as the delimiter and then sort the table on the basis of the 5 columns.

Highlighted
Community Support
Community Support

Re: Multible column sorting problem

Hi @Anttonen 

As tested, it works on my side.

Capture1.JPG

Please tell me what's wrong on your side and what's your expected result.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted
Frequent Visitor

Re: Multible column sorting problem

Thanks for your reply. I did some futher tests and the Power Query sorting works. The reason for sorting is to do data clening using "remove dublicates" after this. However, even if the sortig works on the Power Query side the rows are not sorted as expected in the Data view with this data set. Not sure if Power Query sorting should affect the data view but it would be very strange if not.

View solution in original post

Helpful resources

Announcements
June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021