Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a column with over 40k entries. 100 of them are unique. I want to custom sort them. Should I try to use a custom sort table?
Solved! Go to Solution.
@gingersnap
Create a Custom Sort Order Table:
Unique Value Sort Order
Value A 1
Value B 2
Value C 3
Value D 4
Value E 5
... ...
Create a Relationship from your main table (the one with over 40k entries) to the CustomSortOrder table.
Select the column you want to sort (the one with over 40k entries).
In the Column tools tab, find the Sort by Column dropdown.
Select the Sort Order column from the CustomSortOrder table.
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
@gingersnap
Create a Custom Sort Order Table:
Unique Value Sort Order
Value A 1
Value B 2
Value C 3
Value D 4
Value E 5
... ...
Create a Relationship from your main table (the one with over 40k entries) to the CustomSortOrder table.
Select the column you want to sort (the one with over 40k entries).
In the Column tools tab, find the Sort by Column dropdown.
Select the Sort Order column from the CustomSortOrder table.
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Thank you! Can I duplicate the table with the 40k entries to create the new sort table and then remove the other columns I dont need?
Hi @gingersnap
If you want to sort in Power Query, yes you can sort.
More details https://www.youtube.com/watch?v=uZLmWz60_do
https://www.youtube.com/watch?v=7PVjvY4a_V8
https://community.fabric.microsoft.com/t5/Desktop/Power-Query-Custom-Sort/m-p/523096
Proud to be a Super User! | |
User | Count |
---|---|
98 | |
75 | |
74 | |
49 | |
26 |