Forum Discussion

JoyceW's avatar
JoyceW
Helper II
4 years ago
Solved

Conditional formatting on specific row in matrix based on the value in that row

Hi,    I've created a P&L statement in Power BI, by using a model in Excel and used that for a matrix table.    This is the model:     Then I created several measures. The measure that i...
  • PaulDBrown's avatar
    4 years ago

    Try:

     

    color =
    IF (
        AND ( MAX ( MODEL_RESREK[Item_lay-out] ) = "NETTO-RESULTAAT", [BEDRAGEN] < 0 ),
        "Red",
        IF (
            AND ( MAX ( MODEL_RESREK[Item_lay-out] ) = "NETTO-RESULTAAT", [BEDRAGEN] > 0 ),
            "Green",
            "White"
        )
    )