Forum Discussion

ONYAND's avatar
ONYAND
Frequent Visitor
6 years ago
Solved

RANKX AND AGGREGATION OF RESULT

I am having an issues ranking a set of rows then getting the total to use as input to another calculation. I have attempted nested CALCULATE statements and intermediate table using CALCULATETABLE unsuccessfully. 

Scenario is as follows:

Original table

ItemSales
A3
B1
B4
C2
D7
E5
E1

Ranking top N (3)

ItemSales
D7
E6
B5
TOTAL18

In this example, I am interested in the value 18 for onward processing. Take note that Item E & B have 2 rows each and therefore an aggregation logic needs to be applied beforing ranking

  • Hi ONYAND,

    following are three scenarios of your desired result:

     

     

     

     

     

     

     

    Regards FrankAT

     

5 Replies

  • aj1973's avatar
    aj1973
    Icon for Community Champion rankCommunity Champion

    ONYAND 

    Use filter pane in your desktop to get only Top 3 of your measure in your summarized table

     

  • aj1973's avatar
    aj1973
    Icon for Community Champion rankCommunity Champion

    ONYAND 

    Use filter pane in your desktop to get only Top 3 of your measure in your summarized table

     

     

    • ONYAND's avatar
      ONYAND
      Frequent Visitor

      Hi, thanks for the feedback.  However, I was looking for a dax approach given my use case. 

  • FrankAT's avatar
    FrankAT
    Icon for Community Champion rankCommunity Champion

    Hi ONYAND,

    following are three scenarios of your desired result:

     

     

     

     

     

     

     

    Regards FrankAT