QuickBooks × Metabase

How to build QuickBooks dashboards in Metabase

QuickBooks Online is the accounting system of record for invoices, payments, expenses, and your chart of accounts. Metabase is where you turn that financial data into shared, trustworthy dashboards. Because Metabase reads from SQL databases, the reliable way to connect them is a small pipeline: sync QuickBooks into a database or warehouse on a schedule, then point Metabase at it. This guide walks through that path end to end — including a free option with no paid connector.

Heads up: Metabase connects to SQL databases and warehouses — it does not ship a native QuickBooks connector. For dashboards that need history and reliability, you'll sync QuickBooks into a database first (covered below).

How do you connect QuickBooks to Metabase?

Metabase connects to SQL databases and warehouses — not to SaaS APIs directly, and there's no native QuickBooks connector. So connecting QuickBooks to Metabase means one thing: run a small pipeline that copies QuickBooks data into a database on a schedule, then connect Metabase to that database. Once the data lands, the models, metrics, and SQL later in this guide all work.

The good news: this doesn't require a paid tool. Use a managed connector if you want zero maintenance, or a free, code-based sync you host yourself — both are covered in Build the pipeline below, and in more depth in our guide to building a data pipeline.

What can you analyze from QuickBooks data in Metabase?

  • Invoiced revenue — by month, product/service, and customer
  • Accounts receivable — outstanding balance and aging buckets
  • Days sales outstanding (DSO) — how fast you collect
  • Cash flow — payments received vs. bills and expenses paid
  • Profitability — gross margin by customer and product
  • Expenses — spend by category and vendor over time
  • Customer concentration — top customers by revenue and balance

Which QuickBooks dashboards should you build in Metabase?

For: Founders, finance

Revenue & sales

How much you're invoicing and where it comes from.

  • Invoiced revenue by month (bar)
  • Revenue by product/service and customer (bar)
  • New vs. returning customer revenue (stacked bar)
  • Average invoice value and count (number)
For: Finance, collections

AR & collections

What you're owed and how fast it comes in.

  • Accounts receivable balance now (number)
  • AR aging buckets: current, 1–30, 31–60, 61–90, 90+ (bar)
  • Days sales outstanding (DSO) by month (line)
  • Overdue invoices by customer (table)
For: Finance, ops

Cash flow

Money in vs. money out over time.

  • Payments received vs. bills paid by month (dual line)
  • Net cash movement by month (bar)
  • Expenses by category (bar)
  • Upcoming bills due (table)
For: Leadership

Profitability

Margins by customer, product, and period.

  • Gross margin by month (line)
  • Profit by product/service (bar)
  • Top customers by revenue and margin (table)
  • Revenue vs. expenses trend (combo)

How do you build the QuickBooks → Metabase pipeline?

For dashboards that need history and reliability, land QuickBooks data in a database first, then connect Metabase to that database.

No paid tool required. A fully free stack: a small dlt or hand-written script (extract) → a free Postgres database like Neon or Supabase (load) → a scheduler such as GitHub Actions cron (host) → Metabase (visualize). For hosting and scheduling details, see our data pipeline guide.

Connector options

  • dlt (free, code) — write a Python pipeline against the QuickBooks Online Accounting API for full control.
  • QuickBooks Online API (free, raw) — the source of truth; query entities and reports and sync on a schedule.
  • Airbyte — has a QuickBooks source covering invoices, payments, customers, items, bills, and more. Free if you self-host the open-source version; paid on Airbyte Cloud.
  • Fivetran (paid, managed) — offers a QuickBooks connector with a maintained schema and incremental syncs.

Notes

  • Land raw tables first, then build clean models on top.
  • QuickBooks amounts are decimals in the major currency unit — don't divide by 100.
  • Decide your revenue basis (accrual from invoices vs. cash from payments) and apply it consistently.
  • AR aging is an as-of calculation — model unpaid invoice balances against a reference date.

Can you generate a QuickBooks dashboard with AI?

Yes — and once QuickBooks data is synced into a database, this is the fastest way to a strong first draft. First give an AI assistant a way to read your Metabase schema and create questions and dashboards, then paste the prompt below. It builds the dashboard from your database tables and tells the agent to skip metrics the schema can't support instead of faking them.

Two ways to let an assistant query and build in Metabase

Both connect to a Metabase instance that's already pointed at your synced database — the pipeline above moves the data; these just let the assistant read and write Metabase. Pick whichever fits your setup:

Metabase MCP

Best for
Chat clients (Claude, Cursor, Codex)
Enable
Admin → AI → MCP
Endpoint
https://<your-metabase>/api/metabase-mcp
Auth
OAuth handled by Metabase

Metabase CLI

Best for
Terminal agents, scripts, and CI
Install
npm install -g @metabase/cli
Auth
Browser OAuth (v62+) or an API key
Docs
@metabase/cli

Set up the Metabase MCP server

Enable it under Admin → AI → MCP, then point your client at the endpoint:

ClaudeClaude Code CLI
# Metabase built-in MCP (replace with your instance URL)
claude mcp add --transport http metabase https://your-metabase.example.com/api/metabase-mcp
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "metabase": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://your-metabase.example.com/api/metabase-mcp"]
    }
  }
}

Clients with native remote support can use a "url" field instead of the mcp-remote bridge. Confirm the current endpoint in the Metabase MCP docs.

Set up the Metabase CLI

Install it globally, then authenticate once (the binary is mb):

Install & authenticateshell
# Install the CLI (the binary is `mb`)
npm install -g @metabase/cli

# Authenticate once — opens your browser on Metabase v62+, or use an API key
mb auth login --url https://your-metabase.example.com
mb auth status

On Metabase v62+ mb auth login opens your browser; older servers fall back to an API key. A terminal-based assistant can then inspect your schema (mb db schemas, mb table get --include fields) and create content (mb card create, mb dashboard create) against the synced tables.

Prompt: build the QuickBooks Revenue & AR dashboard

With MCP or the CLI connected, paste this into your assistant to generate the dashboard:

Prompt for creating a QuickBooks Revenue & AR dashboard
Create a polished Metabase dashboard for QuickBooks Online financial analytics
using the available QuickBooks tables in this database.

Goal: Help founders and finance leaders understand invoiced revenue, accounts
receivable, cash flow, and profitability from QuickBooks Online data.

First, inspect the schema and identify the available QuickBooks tables. Do not
assume exact table names. Map the available raw tables into these analytical
concepts where possible: Customers, Invoices, Invoice line items, Payments,
Items (products/services), Bills, Vendors, Expenses/Purchases, and the Chart of
Accounts.

Important:
- Build the dashboard from durable database/warehouse tables.
- QuickBooks amounts are decimals in the major currency unit — do not divide by 100.
- Recognize revenue from invoices (or from the accounting method the business uses);
  do not double-count payments applied to invoices as extra revenue.
- Compute AR as unpaid invoice balances as of a date, and DSO from AR and revenue.
- Report in the company's home currency; if multi-currency, convert with a
  documented rate or caveat the mix.
- Do not claim Metabase connects natively to QuickBooks unless that is explicitly
  true in this environment.

Dashboard title: QuickBooks Revenue & AR Overview

Sections:
1. Executive summary (KPI cards): Invoiced revenue this month; AR balance; DSO;
   Overdue AR; Payments received this month; Gross margin (only if cost data exists).
2. Revenue & sales: Invoiced revenue by month; Revenue by product/service; Revenue
   by customer; Average invoice value.
3. AR & collections: AR aging buckets; DSO by month; Overdue invoices by customer;
   Collection rate.
4. Cash flow: Payments received vs. bills paid by month; Net cash movement;
   Expenses by category; Upcoming bills.
5. Profitability: Gross margin by month; Profit by product/service; Top customers
   by revenue and margin.

Filters: Customer, Product/service, Account, Class/Location (if used), Date range.

Before finalizing, create or recommend reusable Metabase models:
modeled_qbo_customers, modeled_qbo_invoices, modeled_qbo_invoice_lines,
modeled_qbo_payments, and modeled_qbo_ar_aging (an as-of AR balance model).

Output: Build the dashboard if you have permission; otherwise provide the exact
questions, SQL, model definitions, and layout. Include caveats for any metric that
cannot be calculated from the available schema. Reconcile totals against
QuickBooks' P&L and AR aging reports. Keep it practical, dense, and
executive-readable. Avoid vanity metrics.

How should you model QuickBooks data in Metabase?

Core tables

TableGrainKey columns
customersone row per customerid, display_name, balance, created_at
invoicesone row per invoiceid, customer_id, txn_date, due_date, total_amt, balance
invoice_linesone row per lineinvoice_id, item_id, amount, qty
paymentsone row per paymentid, customer_id, total_amt, txn_date
itemsone row per product/serviceid, name, type, unit_price
bills / purchasesone row per expenseid, vendor_id, account_id, total_amt, txn_date

Modeling advice

  • Build a modeled_qbo_ar_aging model: unpaid invoice balances bucketed by days past due_date as of today.
  • Pick one revenue basis (accrual vs. cash) and reuse the definition everywhere.
  • Don't add payments to invoiced revenue — payments settle invoices, they aren't additional revenue.
  • Map the chart of accounts so expenses roll up into readable categories.
  • Reconcile modeled revenue and AR against QuickBooks' own reports.

Which QuickBooks metrics should you track in Metabase?

MetricDefinitionNotes
Invoiced revenueSum of invoice totals in a period.Accrual basis; align with your accounting method.
Accounts receivableSum of unpaid invoice balances.An as-of figure — pick a reference date.
DSO(AR ÷ revenue) × days in period.Lower is faster collection.
Overdue AR rateOverdue balance ÷ total AR.Pair with aging buckets.
Gross margin(Revenue − COGS) ÷ revenue.Needs cost data on items or accounts.
Net cash movementPayments received − bills/expenses paid.Cash basis; watch timing.
Customer concentrationTop customers' share of total revenue.Flags revenue risk.

What SQL powers QuickBooks dashboards in Metabase?

These assume the modeled tables above (PostgreSQL dialect, amounts in major currency units). Adjust identifiers to match your warehouse.

Invoiced revenue by monthPostgreSQL

Invoice totals, counts, and average value over the last year.

SELECT
  date_trunc('month', i.txn_date) AS month,
  ROUND(SUM(i.total_amt), 2)      AS invoiced_revenue,
  COUNT(*)                         AS invoices,
  ROUND(AVG(i.total_amt), 2)       AS avg_invoice_value
FROM invoices i
WHERE i.txn_date >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY 1
ORDER BY 1;
AR agingPostgreSQL

Open invoice balances bucketed by days past due — the collections worklist.

SELECT
  CASE
    WHEN CURRENT_DATE - i.due_date <= 0  THEN 'Current'
    WHEN CURRENT_DATE - i.due_date <= 30 THEN '1-30'
    WHEN CURRENT_DATE - i.due_date <= 60 THEN '31-60'
    WHEN CURRENT_DATE - i.due_date <= 90 THEN '61-90'
    ELSE '90+'
  END                          AS aging_bucket,
  COUNT(*)                     AS open_invoices,
  ROUND(SUM(i.balance), 2)     AS ar_outstanding
FROM invoices i
WHERE i.balance > 0
GROUP BY 1
ORDER BY MIN(CURRENT_DATE - i.due_date);
Top customers this yearPostgreSQL

Revenue and open balance by customer, year to date.

SELECT
  c.display_name             AS customer,
  ROUND(SUM(i.total_amt), 2) AS revenue,
  ROUND(SUM(i.balance), 2)   AS open_balance
FROM invoices i
JOIN customers c ON c.id = i.customer_id
WHERE i.txn_date >= date_trunc('year', CURRENT_DATE)
GROUP BY c.display_name
ORDER BY revenue DESC
LIMIT 20;

What are common mistakes when analyzing QuickBooks in Metabase?

Running dashboards off a one-time CSV export.→ Schedule the sync so data stays fresh — a manual export goes stale the moment someone acts on it.
Counting payments as extra revenue.→ Payments settle invoices — recognize revenue from invoices (or your chosen basis), not from both.
Mixing accrual and cash bases in one chart.→ Pick a revenue basis and label it; don't blend invoiced and collected amounts.
Reporting AR without an as-of date.→ AR aging is point-in-time — model unpaid balances against a clear reference date.
Ignoring multi-currency.→ Convert foreign-currency invoices to the home currency, or split by currency and say so.
Never reconciling with QuickBooks reports.→ Sanity-check revenue and AR against QuickBooks' P&L and AR aging before trusting them.

Related analytics

Related integrations

FAQ

Does Metabase connect natively to QuickBooks?
No. Metabase reads SQL databases and warehouses. Sync QuickBooks Online into a database first (Airbyte, Fivetran, dlt, or the API), then connect Metabase to that database.
What's the cheapest way to sync QuickBooks into a database?
A small dlt or hand-written script against the QuickBooks Online API loading into a free Postgres tier like Neon or Supabase, scheduled with GitHub Actions cron, can run at $0 for small volumes. Managed connectors like Fivetran or Airbyte Cloud cost more but require no maintenance.
Should I recognize revenue from invoices or payments?
Pick a basis and stick to it. Accrual accounting recognizes revenue when invoiced; cash accounting recognizes it when paid. Don't add payments to invoiced revenue — payments settle invoices.