Forum Discussion

ivannye's avatar
ivannye
Icon for Helper I rankHelper I
4 years ago
Solved

create index column in DAX

Hi, I have a column name Employee ID, and endofmonth column that goes like this: EmpID   EndofMonth 19000   09/08/2019 19000   10/08/2019 19001   09/08/2019 19001   10/08/2019 19001   11/08/201...
  • v-luwang-msft's avatar
    4 years ago

    Hi ivannye ,

    Try to use the following dax to create a new column:

    index = RANKX('Table', RANKX('Table','Table'[EmpID],,ASC,Dense)+0.01*RANKX('Table','Table'[EndofMonth],,ASC,Dense),,ASC,Dense)

    Final output:

     

    Did I answer your question? Mark my post as a solution!


    Best Regards

    Lucien