Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Fixed versus Dynamic Rank with RankX

I have a basic matrix table with Product Name, Profit and two rank columns (1 fixed, 1 dynamic) that are calculated with the following measures:   (1) Product Profit Rank = RANKX(ALLSELECTED(Orders...
  • Anonymous's avatar
    Anonymous
    6 years ago
    // This is a global rank that
    // does not respond to
    // any filters.
    
    [Product Profit Fixed Rank] = 
        RANKX(
            ALL( Orders[Product Name] )
            CALCULATE(
                SUM( Orders[Profit] ),
                ALLEXCEPT(
                    Orders,
                    Orders[Product Name]
                )
            )
        )