Forum Discussion

alexei7's avatar
alexei7
Continued Contributor
7 years ago
Solved

RANKX DAX column help

Hi, I'm trying to create a column that will rank Invoices across Suppliers. This needs to be a column so that I can then use this Rank column to create a cumulative total and then (hopefully a meas...
  • Zubair_Muhammad's avatar
    7 years ago

    alexei7

     

    As a calc column,,,try

     

    Calc Column =
    RANKX (
        Table1,
        CALCULATE (
            SUM ( [Invoice Amount] ),
            ALLEXCEPT ( Table1, Table1[SupplierCode] )
        ),
        ,
        DESC,
        DENSE
    )