Forum Discussion

bir1concepts's avatar
bir1concepts
Frequent Visitor
5 years ago
Solved

How can I use Sort by Column and RANKX at same time.

Hi all,   I used RANKX to set up my Power BI report before. But today I got some problems when using RANKX and Sort by Column function at the same time. I really need you help, I really appreciate ...
  • amitchandak's avatar
    5 years ago

    bir1concepts , Try Rank like

    test_r = RANKX(ALL(test[Product], test[Sort),CALCULATE(SUM(test[Qty])),,ASC)

     

    Same way you can try for another measures