3
votes

Is there any possibility for multiple sorting in Power BI. I have below table

**employee_name**   **status**     **Status_Count**  **Duration**
 Arun prasath          closed             2                116
 Arun prasath          open               3                565
 Arun prasath          unattended         6                1140
 Sudip                 closed             1                46
 saran                 closed             2                67

Now below is the criterias;

  i) Filter the closed status

 ii) Top status count

iii) Shortest time duration

Expected table output :

**employee_name**   **status**     **Status_Count**  **Duration**
 saran                 closed             2                67
 Arun prasath          closed             2                116
 Sudip                 closed             1                46

Can anybody help me??

1
Kindly help me to solve thissarankumar
Try creating a Rank column using the RANKX() function and then sort name by rank.Alexis Olson
Can u please give me an example?sarankumar

1 Answers

2
votes

You can do this in the query editor with this formula:

= Table.Sort(#"Renamed Columns",{{"Status", Order.Ascending},{"Status_count", Order.Descending},{"Duration", Order.Descending}})

Here's a screenshot of the result:

enter image description here