
Setup
This pattern uses a SQLCASE statement to assign a label based on the value of a metric. That label is then referenced in the Markdown as a CSS class to control styling.
For example:

The code for this example can be used in the Markdown visualization to apply conditional color styling to KPI charts.

CASE statement to assign a label based on the value of a metric. That label is then referenced in the Markdown as a CSS class to control styling.
For example:
