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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
learner03
Post Partisan
Post Partisan

Double Sort

How can sort below by Picking first...then Ready and then Allocated. Also, the second sort by Job create time from ascending to decending. I mean where the job status will be picking, there time would be Asc to Dsc...and so on.

akapoor03_0-1631776438869.png

@amitchandak @Fowmy 

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @learner03 

 

You need to create two column to show the sort results you want.

Like this:

Column = IF(Table1[job status]="Picking",1,IF(Table1[job status]="Ready",2,3))
rank = RANKX(Table1,RANKX(Table1,[Column],,DESC)*1000+RANKX(Table1,[jbo create time],,ASC,Dense))

vjaneygmsft_0-1632205608201.png

Reference:

RANKX function (DAX) - DAX | Microsoft Docs

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @learner03 

 

You need to create two column to show the sort results you want.

Like this:

Column = IF(Table1[job status]="Picking",1,IF(Table1[job status]="Ready",2,3))
rank = RANKX(Table1,RANKX(Table1,[Column],,DESC)*1000+RANKX(Table1,[jbo create time],,ASC,Dense))

vjaneygmsft_0-1632205608201.png

Reference:

RANKX function (DAX) - DAX | Microsoft Docs

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

amitchandak
Super User
Super User

@learner03 , In the table visual you can click on another column with shift and sort that too.

Click on the column, what you want to sort , once or twice. Then press shift and click on another one

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak @Fowmy  If I click on Status  coloumn, then it sort alphabatically. But, I want it to be by Picking..Ready ..Allocated. How can I do that?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors