Forum Discussion

Preetish_1's avatar
Preetish_1
Helper I
8 years ago
Solved

Calculated Index Column

Hello everyone,   I was wondering if someone could help me figure out how to create a calculated index column using DAX. I would like to use a user name column and a date column, indexing the first...
  • vik0810's avatar
    8 years ago

    Use following DAX for the column

     

     

    Index =
    CALCULATE (
        COUNTROWS ( Table ),
        FILTER (
            Table,
            Table[User] = EARLIER ( Table[User] )
                && Table[Date] <= EARLIER ( Table[ Date] )
        )
    )