Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Set conditional formatting between fields

Hi, I would like to change the color of a row if 2 field have the same name for example if I have the table (first name, last name, age) I would like to color of the same color row who has the same ...
  • v-yulgu-msft's avatar
    v-yulgu-msft
    7 years ago

    Hi Anonymous ,

     

    These are two separate measures.

    The first one:

    Measure = SELECTEDVALUE(Table1[FirstName])

    The Index measure:

    Index = 
    RANKX(ALLSELECTED(Table1),[Measure],,ASC,Dense)

    Best regards,

    Yuliana Gu