One sorting problem. How to sort text column like "Sorted version".
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.
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.
View solution in original post
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.
Click here to read more about the December 2021 Updates!
Mark your calendars and join us for our next Power BI Dev Camp!
Learn how to create your own user groups today!