Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Conditional Formatting - Row Subtotal Only

Hello community,   I have a mockup PowerBI file I created (link at bottom) with dummy data. The visual I need is a matrix and this matrix is essentially a heat map to show which workers are over/un...
  • PaulDBrown's avatar
    4 years ago

    See if this works for you:

    Create a measure for the condional formatting along the lines of:

    Conditional Formatting =
    VAR CF =
        SWITCH (
            TRUE (),
            AND ( [Variance] >= 30, [Variance] < 200 ), 1,
            AND ( [Variance] >= -200, [Variance] < -30 ), 1
        )
    RETURN
        IF ( ISINSCOPE ( 'Forecasted Hours by Worker'[Project] ), BLANK (), CF )
    

    and use it in the conditional formatting pane as follows: