Forum Discussion
Conditional formatting just for some cells in a matrix
- 3 years ago
Add a measure to set the formatting color and check for the KPI1 row like this.
Format Color = SWITCH ( TRUE(), SELECTEDVALUE ( YourTable[Name] ) = "KPI1", SWITCH( TRUE, [Actual] <= 75, "Red", [Actual] >= 80, "Green" ) )Then apply that measure as the background color to the value:
savulesc you cannot use conditional formatting on a column used in the rows but if you are using table visual, you can apply conditional formatting on the column on a row. Add a new measure for conditional formatting and then use table visual and apply field value for Name column using the color measure
Color KPI =
VAR __actual = [Actual Measure]
RETURN
SWITCH ( TRUE(),
__actual > .80, "Green",
__actual < .75, "Red"
)
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
I didn't really understand your response, but I don't want to use conditional formatting on the Name column , because that doesn't help me at all.