Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello,
I want to create a new key column and sort the table by this key. I know how to combine the fields (three columns), but how to sort the table by this new key field (with DAX)?
I know the standard sort function but I want automate it.
Thanks
Dominik
Solved! Go to Solution.
I'm afraid there is no better way to do that with dax. Below is the other way about sorting for your reference.
https://community.powerbi.com/t5/Desktop/Data-Sorted-Automatically/td-p/181603
Regards,
Cherie
I'm afraid there is no better way to do that with dax. Below is the other way about sorting for your reference.
https://community.powerbi.com/t5/Desktop/Data-Sorted-Automatically/td-p/181603
Regards,
Cherie
I create the key in M now and use the "Sort by Column" function in the Data view. Seems to work.
Thanks
Glad to hear it worked, please accept the reply as solution, that way, other community members will easily find the solution when they get same issue.
Regards,
Cherie
I don't think this can be done in DAX. The normal way to do this is to use the "Sort by Column" function in the Data view.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 28 | |
| 28 | |
| 19 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 37 | |
| 29 | |
| 18 | |
| 17 | |
| 15 |