Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Ranking by Multiple Criteria

Respected All, I am trying to rank my data in which there are following fields Date,Region, Area, Store Name, Store Tier & Sales I want to get rank against Sales but Date wise > Region Wise > Area Wise > Store Tier Wise Like which store of which tier in which region performed well.
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    You are ranking the Stores according to Sales which belong to the Same Tier for a particular Date.

     

     

    Column =


    RANKX(FILTER('Table1','Table1'[Date] = EARLIER('Table1'[Date]) && Table1[Store Tier] = EARLIER(Table1[Store Tier])),Table1[Sales])
     
     
     
     
    Regards,
    Harsh Nathani

    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

10 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Respected Amit,

      Is there any way to rank the data using sales but date wise and tier wise only ??

       

    • Anonymous's avatar
      Anonymous
      Not applicable

      This is what i am trying to achieve 

      Countifs(Date Range,Date,Store Tier Range, Store Tier,Sales Range,">"&SalesValue)+1

      =COUNTIFS($A$2:$A$1048573,$A104,$B$2:$B$1048573,$B104,$J$2:$J$1048573,">"&$J104)+1

       

      Using this formula in excel and is giving accurate answer, can include region & area as well

       

      DateStore TierSalesRanks
      09/06/2020GOLD1005
      09/06/2020DIAMOND2004
      09/06/2020BRONZE3003
      09/06/2020SILVER4002
      09/06/2020PLATINIUM5001
      10/06/2020GOLD1005
      10/06/2020DIAMOND2004
      10/06/2020BRONZE3003
      10/06/2020SILVER4002
      10/06/2020PLATINIUM5001

       

      Is there any solution that i can get

       

      1- Date wise Tier wise Sales wise Rank

      2- Date wise Region wise Sales wise Rank

      3- Date wise Area wise Sales wise Rank

       

      I have gone through so many solutions but none of them included date and when i apply that it ranked perfectly but not according to individual date.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

         

        Create a measure.

         

        Datewise Sales =
        RANKX(FILTER(ALLSELECTED('Table'),'Table'[Date] = MAX('Table'[Date])),CALCULATE(SUM('Table'[Sales])))
         

        Regards,
        Harsh Nathani

        Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)