Forum Discussion

myti's avatar
myti
Helper II
9 years ago
Solved

Add 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  
  • Eric_Zhang's avatar
    Eric_Zhang
    9 years ago

    myti

     

    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
    )