Forum Discussion

phamtrinh96's avatar
phamtrinh96
Helper II
7 years ago
Solved

[ Create Index Auto with Measure ]

Hi , I have a problem and I need from your help.  I have 1 slicer select Brands. when I select one or many Barnd then slicer table will show many restaurant of Barnd. And I want to create Index for ...
  • v-yuta-msft's avatar
    7 years ago

    phamtrinh96 ,

     

    You may create a measure using DAX like pattern below:

    Index =
    RANKX (
        ALLSELECTED ( Table[Brands] ),
        CALCULATE ( SUM ( Table[Amount] ) ),
        ,
        DESC,
        DENSE
    )
    

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.