Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
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
Hi
One sorting problem. How to sort text column like "Sorted version".
| Orginal | Sorted version |
| 1. John | 1. John |
| 10. John | 2. James |
| 2. James | 3. John |
| 3. John | 4. John |
| 4. John | 5. James |
| 5. James | 6. John |
| 6. John | 7. John |
| 7. John | 8. James |
| 8. James | 9. John |
| 9. John | 10. John |
Solved! Go to Solution.
Using Power Query.
Split the column using . as the separator.
Sort the data on the numeric column.
Merge the columns back together.
OR
Why continue to work with the data in the original format? Split the column, treat text as text, numeric as numeric and live happily ever after.
Go to PowerQuery Editor.
Duplicate the Column. Extract the Id's using Text Before Delimiter. Later convert the datatype of Id's as Whole Numeric. Click on Close and Apply.
To sort the data in visual. Sort the Data on bases of Id's Column.
Thanks, could I sort them also in slicer?
Hi @blossfeld ,
Yes. After you have sorted the original column based on ID number in Data view mode, it would be dispalyed in correct order in slicer, too.
In Power Query, duplicate the original column, split it by delimiter ".", remove unnecessary columns.
In data view, change the default "Sort by" column to [ID].
Add column into slicer.
Best regards,
Yuliana Gu
Using Power Query.
Split the column using . as the separator.
Sort the data on the numeric column.
Merge the columns back together.
OR
Why continue to work with the data in the original format? Split the column, treat text as text, numeric as numeric and live happily ever after.
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 |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 58 | |
| 31 | |
| 25 | |
| 24 |