Forum Discussion
Preetish_1
Helper I
8 years agoCalculated 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...
- 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] ) ) )
Preetish_1
Helper I
8 years agoHi,
Did you try a Calculated Column or a Measure?
As the above formula was for a Calculated Column.
mbuick
8 years agoFrequent Visitor
HI,
This is a calculated column as per the example script in the original post.
thanks.