This guide is essential to enhance dashboards by leveraging Metric Expressions for single-value cards.
Metric Expressions allow you to perform calculations using single-value card metrics by referencing their values with their Metric IDs.
Example:
We have two single value cards:
- Sales with Metric ID
{{Sales_hwPED}}
, valued at $2.89B- Profit with Metric ID
{{Profi_qjvSWB}}
, valued at $2.84B
To calculate the Sales Profitability Ratio, we can use a Metric Expression:
ROUND({{Sales_hwPED}}/{{Profi_qjvSWB}}, 2)
Output: A single-value card displaying 1.02
Alternatively using,
{{Sales_hwPED}}
/{{Profi_qjvSWB}}
Output: A single-value card displaying
2891075848.0202847 / 2840122818.152845
Reference the value of a single-value card using its Metric ID like {{metricid}}