Forum Discussion

hackfifi's avatar
hackfifi
Helper V
6 years ago
Solved

Add Index based on 2 x Columns

Hi - Just need some help to create the INDEX column. It should be a sequence number sorted on Period but resets when Project Changes. Happy to use a calculated column or adding it to the Power Query ...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    6 years ago

    Hi hackfifi ,

     

    Would you please try to use 

     

     

    Index = RANKX(filter('Table','Table'[Project]=earlier('Table'[Project])),'Table'[Period],,ASC,Dense)

     

     

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

     

    Best Regards,

    Dedmon Dai