Forum Discussion

y_s_c's avatar
y_s_c
Frequent Visitor
2 years ago
Solved

Conditional formatting stops working when using slicer

Hi there,   I've got a matrix with some basic measures that display calculated percentages for, say, a bunch of companies in different geographies. The matrix uses condititional formatting to colou...
  • Joe_Barry's avatar
    Joe_Barry
    2 years ago

    Hi y_s_c 

     

    I think the issue is caused by the ALL(Table1[Something]) in the measures.

     

    Can you tell me the bahaviour you would like to acheive in the visual?

    Example when you filter Europe what do you want to see? Do you want the colour formatting to Jump to Europe, but still see all the other continents?

     

    The colour coding logic doesn't make sense, you will always have less than All and Never More than all. Is there a % value that we can measure against?

     

    Asia colour formatting = 
    IF (
        [Asia %] = BLANK (),
        "",
        IF (
            [Asia %] < [All],
            "#feb5b1",
            IF ( [Asia %] > [All], "#cee2cd" )
        )
    )