Forum Discussion

D3K's avatar
D3K
Advocate II
7 years ago
Solved

Rank by multiple values

Hello everyone!   Any help will be appreciated in the next question   I have 3 tables: 1. Sales (date, customer ID, product ID, sales $) 2. Calendar (dates, months & so on) 3. Products (produc...
  • v-jiascu-msft's avatar
    7 years ago

    Hi D3K ,

     

    That measure in the demo could be the customer level measure. Please try out this one as a company level rank measure.

    CompanyLevelRank =
    RANKX (
        ALL ( DimProduct[ProductKey] ),
        CALCULATE (
            SUM ( FactSales[SalesQuantity] ),
            ALL ( DimCustomer[CustomerLabel] )
        )
    )
    

    Rank-by-multiple-values2

     

     

    Best Regards,