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 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi All,
We have data like below image :-
Based on the sort range column I want to create one another column where sort range contains “>-“ it will be 1 and if sort range contains “>” it will be max value of the sort range rest remain same in new column.
It will helpful if I do the changes in same column “sortrange”
This column I have created to sort the “Range”.
Solved! Go to Solution.
Hi @Anonymous ,
Please check the formula.
Column =
IF (
CONTAINSSTRING ( 'Table'[range], ">-" ),
"1",
IF (
CONTAINSSTRING ( 'Table'[range], ">" ),
SUBSTITUTE ( 'Table'[range], ">", "" ),
'Table'[short range]
)
)
Best Regards,
Jay
Hi @Anonymous ,
Please check the formula.
Column =
IF (
CONTAINSSTRING ( 'Table'[range], ">-" ),
"1",
IF (
CONTAINSSTRING ( 'Table'[range], ">" ),
SUBSTITUTE ( 'Table'[range], ">", "" ),
'Table'[short range]
)
)
Best Regards,
Jay
First duplicate the shortRange column in the query editor then replaces >- values into = as given below
then split the column by non digit to digit and close and apply
then create calucate column like below
@Anonymous , Looking at data remove > signs , trim space and covert to number, best can done in power query using replace values and trim under data transform
Power Query Trim and Clean: https://youtu.be/NRYPsCnS0w4
Power Query Replace Value: https://youtu.be/hkZhZbR7Kmk
@amitchandak , There is tow 17000 and >17000 presented in data
based on the sort of range, I am trying to sort "Range" column, If I am remove > sign from the column and trying to sort "Range" column based on "Sort Range" column there will be conflict between 2 rows
It will showing me x axis like this on data:
>-20000 should be palace on 1st position.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 26 | |
| 26 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 51 | |
| 49 | |
| 43 | |
| 38 | |
| 36 |