Forum Discussion
myti
Helper II
9 years agoAdd calculated index column by DAX
Dear Friends, I have table as a below,I would be happy if you guide me how I can add the calculated index column to the table a New column by a DAX formula. Thank you, Myti
- 9 years ago
Try to create a calculated column in DAX.
index = RANKX ( FILTER ( yourTable, EARLIER ( yourTable[CC] ) = yourTable[CC] && EARLIER ( yourTable[Type] ) = yourTable[Type] && yourTable[Cluster] = yourTable[Cluster] && EARLIER ( yourTable[Status] ) = yourTable[Status] ), yourTable[Avg-Position], , ASC )
Eric_Zhang
Microsoft Employee
9 years ago
Try to create a calculated column in DAX.
index =
RANKX (
FILTER (
yourTable,
EARLIER ( yourTable[CC] ) = yourTable[CC]
&& EARLIER ( yourTable[Type] ) = yourTable[Type]
&& yourTable[Cluster] = yourTable[Cluster]
&& EARLIER ( yourTable[Status] ) = yourTable[Status]
),
yourTable[Avg-Position],
,
ASC
)
PowerQueryFTW
8 years agoFrequent Visitor
Thanks so much!