Forum Discussion

Anonymous97's avatar
Anonymous97
Frequent Visitor
3 years ago
Solved

Conditional formatting based on column values

Hello, I have requirement where I have to show blue color for only one cell in the matrix based on the other column value. For example- I have 2 columns named Measure 1 and measure 2. Whenever the ...
  • v-jialluo-msft's avatar
    3 years ago

    Hi Anonymous97 ,

     

    Please follow these steps:

    (1) Create a new measure

    condition2 = 
    IF (
        [Measure2]
            = MAXX (
                FILTER (
                    'Table',
                    [Measure1]
                        = MAXX (
                            FILTER (
                                ALL ( 'Table' ),
                                [lend] = MAX ( 'Table'[lend] )
                                    && [Measure1] < [Parameter Value]
                            ),
                            [Measure1]
                        )
                ),
                [Measure2]
            ),
        "#118DFF"
    )
    

    (2) The end result

     

     

    Best Regards,

    Gallen Luo

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.