This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a column of descriptions , How Do I Sort that column ? So that I can compare with Previous value to identify multiple keys
ID Desc
1 Apple
2 Ball
3 Cat
4 Apple
5 Cat
I need to sort this column:
ID Desc
1 Apple
4 Apple
2 Ball
3 Cat
5 Cat
Final Output
ID Desc CalColumn
1 Apple 1,4
2 Ball 2,6
3 Cat NULL
OR
ID Desc CalColumn
1 Apple X
2 Ball NULL
3 Cat X
4 Apple X
5 Cat X
Solved! Go to Solution.
Hi,
Sorting will be easy. Click dropdown of the column and choose Sort Ascending in Query Editor. We also can add an index to keep the new order. Could you tell me the mean of the output?
Best Regards!
Dale
Hi,
That all depends on the output you want. Dax has some funtions to do sorting work. But they don't work the way like sort here. Such as Rankx, TopN.
Best Regards!
Dale.
Hi,
Sorting will be easy. Click dropdown of the column and choose Sort Ascending in Query Editor. We also can add an index to keep the new order. Could you tell me the mean of the output?
Best Regards!
Dale
Can I do that in Dax ?
Hi,
That all depends on the output you want. Dax has some funtions to do sorting work. But they don't work the way like sort here. Such as Rankx, TopN.
Best Regards!
Dale.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 31 | |
| 31 | |
| 25 |