Chart types
Set up a single value card
Show one headline number, with a comparison, color rules and a sub-header.
Show one number on a card, for example total revenue.
What the data needs
One column. Databrain uses the first measure, or the first dimension if there is no measure. The card shows the first row only, so make the query return one row.
Steps
-
Add one field to Measures, for example
sum(revenue). -
In the chart toolbar, select Chart type, then Single Value.

Single Value in the Chart type picker. -
Select Appearance.
-
In Number format, set Value format and Decimal places.

Value format is at the top of Chart settings. -
Open Customizations and set the Prefix, Suffix and Max font size.

Prefix and Suffix are in Customizations. The preview shows the result. -
Select Done.
The card shows the formatted number.
Add a sub-header
-
In Customizations, turn on Customize sub-header.

The sub-header sits under the value. -
Enter the Sub-header text. It saves when you press Enter or leave the field.

The preview updates as you type. -
Set the Sub-header alignment, Font size, Font weight and Font color.

Align the sub-header with the value.
Compare with an earlier period
Comparison value shows only when the measure has an aggregate, such as SUM.
-
Open Comparison value and turn on Show comparison value.

Turn it on to see the comparison options. -
Choose the Time column and the Time grain, for example
order_dateand Quarter.
The time column decides which period the value covers. -
In Show change as, choose Percentage or Difference.

Percentage or the plain difference. -
Select Save. It is available once Time column, Time grain and a Comparison period lag above 0 are set.

The card now shows the change against the last quarter.
Other options: Enable year over year, Comparison period lag, Comparison suffix, Indicator color, Trendline and Bypass comparison when date is not set.
Color the value with a rule
-
Open Conditional formatting and select Add rule.

Add rule opens a new rule form. -
Choose a Rule type: Range or String.

Range compares numbers; String compares text. -
For a range, enter the Min value and Max value. For a string, choose the Condition and enter the Text.

The rule applies when the value is in this range. -
Choose the Font color.

The value takes this color when the rule matches. -
Select Save rule.

The value turns red because it is under 60,000.
Other settings
- Card color sets a background color for the card.
- Actions has Custom Underlying Data and Alerts and Signals. Chart actions
To show a calculation from other metrics, see metric expression.