MAY 4-8: Web Performance Week - Five days of expert sessions on synthetic monitoring, real user data, and Core Web Vitals from the people building the tools.

Sign-up

Combine, compare & compute: Multi-query and custom formulas are now supported on more widgets

bar chart

Answering your most complex questions about issues affecting yours users is now faster and easier. KPI, gauge, pie chart, and bar chart widgets now support multiple queries and custom formulas.

The old way

Dashboards answer the questions developers already know to ask. The harder wins come from the questions between the numbers: How did our crash rate shift between releases? Which endpoints have the worst failure ratio relative to their traffic? How does P95 compare to P99 on a per-version basis?

While the Embrace platform has provided out-of-the-box experiences for some of those questions, building custom views into the unique instrumentations, attributes and detail of your implementation has always fallen on custom dashboards. To answer those questions you almost always need to combine two or more sets of data, or compare the same data across different filters. Until now, that meant creating several widgets and comparing them by eye, or exporting raw data to do the math elsewhere.

Now, we’ve made multi-query support available across KPI, gauge, pie, and bar widgets. With that, you can:

  • Combine multiple queries in a single widget, up to 10 queries or filtered slices per visualization.
  • Apply formulas across those queries. Basic arithmetic (A + B), ratios (A / B * 100), and deltas (A - B) let users derive and track custom answers on the fly.
  • Toggle query visibility on KPI, gauge, and pie, where a single eye icon flips between raw queries and the computed result.
  • View side-by-side comparisons on bar chart, where every query renders as its own bar at each X-axis point, making multi-dataset comparisons immediate.

What you can do now, with concrete examples

KPI: Week-over-week delta across releases

Comparing a metric across two filtered datasets used to require two widgets and a spreadsheet. Now you can transform that into a single KPI.

Scenario: You shipped v2.2.0 yesterday. Did daily active users go up or down compared to v2.1.0?

  • Query A: Sessions → Daily Active Users, filtered to app_version = 2.2.0
  • Query B: Sessions → Daily Active Users, filtered to app_version = 2.1.0
  • Formula: A - B, label: “DAU Change”

The KPI shows the raw delta. Toggle the eye icon to inspect either version’s DAU in isolation. No single stored metric captures “the difference between two filtered datasets”, and that’s exactly what formulas are for.

Screenshot of building a multi-query KPI widget.
Screenshot of a DAU KPI

Gauge: End-to-end checkout latency

Gauges work best when a single number maps to a target. One thing no stored metric captures directly is a custom multi-step business flow: the sum of the spans you’ve instrumented to track it end-to-end.

Scenario: Your checkout flow is three discrete spans you tagged: cart.load, payment.process, and confirmation.render. None of them tell you the full picture on their own. What you actually care about is total checkout latency at P95. That’s the number a product manager would use to set an SLO.

  • Query A: Spans → Span 95th Percentile Duration, filtered to span_name = cart.load
  • Query B: Spans → Span 95th Percentile Duration, filtered to span_name = payment.process
  • Query C: Spans → Span 95th Percentile Duration, filtered to span_name = confirmation.render
  • Formula: A + B + C, label: “Total”
  • Gauge thresholds: warning at 4000ms, error at 8000ms

Toggle the eye icon to inspect each step in isolation when the total turns yellow: if payment.process is the one running long, you know exactly which team owns the regression.

Screenshot of building multi-query gauge
Screenshot of gauge widget

Pie Chart: Combined failure distribution across releases

Stored metrics split errors by error code: 4xx is one metric, 5xx is another. But when you’re triaging a rollout, the first question isn’t “what error code is spiking?”. It’s “which release is performing poorly?” A formula view on a pie chart answers that directly.

Scenario: You want to see, at a glance, which app version accounts for the most total failures, regardless of whether they’re client errors, server errors, or some mix of both.

  • Query A: Network → 4xx Call Count grouped by app_version
  • Query B: Network → 5xx Call Count grouped by app_version
  • Formula: A + B, label: “Errors”

The formula slice view shows one ranked distribution: each slice is an app version, sized by its total failure count across both error classes. Looking at either query alone can mislead. One release might dominate 4xx while another dominates 5xx. The combined view gives you the definitive “which release has the network http request performance” answer, which is exactly what you want open on screen during a rollout.

Screenshot of building a multi-query pie chart widget with a custom formula
Screenshot of a pie chart widget

Bar Chart: Latency percentiles per release

Bar charts shine by combining both individual measures and grouping in a single chart. Rather than building three separate widgets for P90, P95, and P99, put them on the same chart grouped by app version, which lets you better visually compare improvement or regression across releases. It can also help you get a sense of the delta (talking about long tails again) between your percentile thresholds.

Scenario: You want to track how latency distribution changes across releases, not just the 95th percentile headline number.

  • Query A: Spans → Span Duration P90
  • Query B: Spans → Span Duration P95
  • Query C: Spans → Span Duration P99
  • Group by: app_version
  • Sort: Descending

Each release gets three bars side-by-side. A version where P90 is flat but P99 spikes tells a different story than one where everything rises, and the shape is visible at a glance.

Screenshot of building a multi-query bar chart widget
Screenshot of bar chart widget

Bar Chart with formula: Composite error rate per version

Scenario: You care about total failure rate, not just one error class. Combine 4xx and 5xx into a single computed bar per version.

  • Query A: Network → 4xx Error Request Pct
  • Query B: Network → 5xx Error Request Pct
  • Formula: A + B, label: “Total Error %”
  • Group by: app_version

Each version now shows three bars: 4xx, 5xx, and the composite total. A release where the total stays flat but 5xx grows while 4xx shrinks tells you something specific happened server-side.

Screenshot of building a multi-query bar chart with a custom formula
Screenshot of a bar chart widget

Why this matters

These visualizations don’t replace the measures Embrace already exposes; they build on top of them. A stored meter answers “what’s my 4xx error rate?”. A multi-query widget answers “how is my 4xx error rate shifting across releases relative to my 5xx rate?”. The former is a data point; the latter gives you eyes on the keys to initiate an investigation.

By bringing multi-query and formulas to KPI, gauge, pie, and bar, the dashboard becomes a place where developers can ask second-order questions without leaving the platform, the same way they already ask first-order ones today.

Available Today!

Multi-query and formula support ships to all users today. If you’re already using line chart formulas, the same mental model now applies everywhere. If you haven’t yet, the best way to start is to find a question you’ve been answering with two widgets and see if it collapses into one.

You can get the full story and details on the Custom Dashboards docs.

Embrace Deliver incredible mobile experiences with Embrace.

Get started today with 1 million free user sessions.

Get started free
Related Content

Unlock deeper insights with revamped Custom Dashboards

Custom Dashboards have always given engineers the flexibility they need to do their own analysis, explore trends, and share insights across their orgs. Now, we've given this crucial feature a serious upgrade. New chart types, more powerful filters, better searchability, and an overall more streamlined experience make Custom Dashboards all the more useful for our customers.

Unleash deeper insights with Embrace’s new Time Series Arithmetic feature

Embrace's Custom Dashboards have become an even more powerful analysis tool with the release of an exciting new feature - Timeseries Arithmetic. This allows devs to build highly customized widgets by combining different datasets using basic arithmetic expressions.
An image of an old fashioned clock with the date and weekday on a yellow background

Historical look-back now available for Embrace Custom Dashboards

Embrace's Custom Dashboards now let customers analyze long-term trends in their app's health and performance with the new historical look-back feature. Explore a time frame for any datapoints captured by the Metrics API, which now powers these dashboards to allow for even greater analysis capabilities.