ClickStack Demo Day (2026-08-21) - Metric formulas in the chart editor

ClickHouse
95 views September 3, 2026

Metric charts can now do arithmetic. Series in a chart are labelled A, B, C, and a formula row lets you build a derived series from them, like A / (A + B + C) * 100 for a queue utilization rate. You can add several formulas to one chart, choose whether to show the operand series alongside the result or just the formula, and mix series from different metrics. Alerts work on formulas too. The formula is compiled from a validated AST into the composed metric query, so ClickHouse computes it in a single scan. Missing operands count as zero and every division denominator is wrapped in nullif(..., 0), so a zero denominator renders as a gap rather than a zero or an error. The input takes letter references and simple arithmetic, not arbitrary SQL. Unknown series refs, malformed expressions and constant-only expressions are caught live in the editor and block save, so an invalid expression never reaches ClickHouse. Part of the ClickStack Demo Day series. See the full post at https://clickhouse.com/docs/use-cases/observability/clickstack/demo-days/2026/2026-08-21

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close