Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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
Solved! Go to Solution.
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.
Hi @Anttonen
As tested, it works on my side.
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.
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.
Hi @Anttonen,
Try splitting col1 into 3 columns with "_" as the delimiter and then sort the table on the basis of the 5 columns.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
11 | |
7 | |
6 | |
6 |