Creating Smashes

~5 min read

A smash is a single goal widget on your dashboard. It points at a metric, declares a target, and shows you at a glance whether you're winning or not. The name comes from the mission: smash those goals.

What Makes a Smash

Every smash has three parts:

  1. A query — a SmashQL statement that defines what to measure and what success looks like
  2. A visualization — how to display that progress (arc, bar, gauge, scorecard, trend line)
  3. A label — a human-readable name that shows up on your dashboard

Creating a Smash

  1. Open a dashboard and click Add Smash.
  2. Give your smash a label (e.g. "Monthly Revenue").
  3. Write a SmashQL query in the editor. Not sure where to start? See SmashQL reference or use one of the built-in templates.
  4. Choose a visualization type from the dropdown.
  5. Click Preview to see how it looks with live data.
  6. Click Save to add it to your dashboard.

A Simple Example

This SmashQL query creates a smash that tracks monthly revenue against a $50,000 goal, displayed as a circular progress arc:

SELECT date_trunc('month', created_at) AS month,
       sum(total_price) AS total_revenue
FROM shopify.orders
WHERE financial_status = 'paid'
GROUP BY month
GOAL total_revenue >= 50000
VISUALIZE progress_arc

The GOAL clause declares your target. The VISUALIZE clause tells dashboardSMASHBOARD how to render it. Everything else is standard SQL.

Choosing a Visualization

Pick the visualization that makes the status of your goal immediately obvious at a glance:

See Visualization types for screenshots and when to use each.

Editing a Smash

Click any smash on your dashboard to open the editor. Change the query, visualization, or label and click Save. Changes take effect immediately.

Deleting a Smash

Open the smash editor and click Delete smash at the bottom. Smash deletion is permanent — the smash is removed from the dashboard and the SmashQL query is discarded.

Next Steps

Still need help?