Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Sort by repeating values

Hi Experts

 

I have repearting values in a column and i want to sort the data by increasing week bands... see sample data below

0 - 6 Week
0 - 1 Week
7 - 12 Week
106 - 107 Week
107 - 108 Week
108 - 109 Week
109 - 110 Week
110 - 111 Week
111 - 112 Week
122 - 123 Week
13 - 17 Week
13 - 14 Week
14 - 15 Week
150 - 151 Week
15 - 16 Week
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
You can do the following https://we.tl/t-RB37p59aXq

1.png2.png3.png4.png5.png6.png7.png8.png

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Anonymous 
You can do the following https://we.tl/t-RB37p59aXq

1.png2.png3.png4.png5.png6.png7.png8.png

tamerj1
Super User
Super User

Hi @Anonymous 
Would you please advise the expected result you're looking for?

Anonymous
Not applicable

Hi - I was expecting something along the lines of

Sort_Bands = IF('reporting Diagnostics_Weekly_Waiting_MDS' = "0 - 1 Week", 0,
IF('reporting Diagnostics_Weekly_Waiting_MDS' = "1 - 2 Week", 1,
IF('reporting Diagnostics_Weekly_Waiting_MDS' = "2 - 3 Week", 2)))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.