Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to sort column by custom?

How to sort column by custom?

I want to sort column status by completetd, on​ the​ way, cancel​, error​, blank 

now I use DAX as below.

if [status] = "Completed" then 1 
else if [status] = "on the way" then 2 
else if [status] = "cancel" then 3
else if [status] = "error" then 4 else 5

 It I want more sort , If status = on the way I want to sort %progrees from ascending.

 

 Guide me please.

 

 

4 Replies