The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
71 | |
48 | |
46 |