Forum Discussion
Conditional Formatting for target on KPI
- Anonymous4 years ago
Hi Anonymous ,
According to your code, I think [Target] is a calculated column. Here I suggest you to create a measure instead of calcualted column for conditional formatting. And there are not many conditions and return values in parallel here, only green and red. So I suggest you to try IF function.
My Sample:
Measure:
Targets = IF ( MAX ( 'Table'[MetricName] ) = "Days to Containment" && AVERAGE ( 'Table'[Result] ) > 10, "Red", "Green" )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
According to your code, I think [Target] is a calculated column. Here I suggest you to create a measure instead of calcualted column for conditional formatting. And there are not many conditions and return values in parallel here, only green and red. So I suggest you to try IF function.
My Sample:
Measure:
Targets =
IF (
MAX ( 'Table'[MetricName] ) = "Days to Containment"
&& AVERAGE ( 'Table'[Result] ) > 10,
"Red",
"Green"
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.