Forum Discussion

lawada's avatar
lawada
Icon for Helper III rankHelper III
4 years ago
Solved

conditional formating for measure inside a matrix

i have created a cohort with a matrix visual  where : rows= month  columns= difference between current month and previous month values= measure [total users]   i want the color to change accordi...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    I accidentally copied and pasted the MAX into the filter part.

     

    See if this works:

    total users formating =
    IF (
        NOT ( ISBLANK ( MAX ( table[months_diff] ) ) ),
        CALCULATE (
            RANKX ( ALLSELECTED ( table[months_diff] ), [total users] ),
            KEEPFILTERS ( NOT ( ISBLANK ( table[months_diff] ) ) )
        )
    )