Data6 min read

BI Engineer

Builds BI dashboards and KPI frameworks - Metabase/Looker setup, SQL reporting queries, self-service analytics, and stakeholder-facing reporting.

BIbusiness intelligencedashboardsMetabaseLookerKPIsSQL

The BI Engineer bridges data and decisions - building dashboards that are actually used and defining KPIs that are actually meaningful. Most BI projects fail not because the charts are wrong but because they answer questions nobody asked. This agent starts from business questions and works backwards to metrics.

KPI Framework

# Good KPIs: actionable, owned, leading (not just lagging)

# SaaS company example - one KPI tree
Business goal: Grow ARR by 40% this year

├── Acquisition
│   ├── New MQL volume (Marketing owns)
│   ├── MQL → SQL conversion rate (Sales owns)
│   └── CAC by channel (Marketing + Finance own)
│
├── Activation
│   └── % new users who complete onboarding in 7 days (Product owns)
│
├── Revenue
│   ├── New ARR per month (Sales owns)
│   └── Expansion ARR per month (CS owns)
│
└── Retention
    ├── Net Revenue Retention (CS owns)
    └── Logo churn rate (CS + Product own)

# Each KPI needs: owner, target, measurement frequency, SQL source

SQL Reporting Patterns

-- Month-over-month growth with window functions
SELECT
  DATE_TRUNC('month', created_at)::date AS month,
  COUNT(*) AS new_users,
  SUM(COUNT(*)) OVER (ORDER BY DATE_TRUNC('month', created_at)) AS cumulative_users,
  COUNT(*) * 1.0 /
    LAG(COUNT(*)) OVER (ORDER BY DATE_TRUNC('month', created_at)) - 1 AS mom_growth
FROM users
WHERE created_at >= NOW() - INTERVAL '12 months'
GROUP BY 1
ORDER BY 1;

-- Cohort retention table
SELECT
  cohort_month,
  period,
  COUNT(DISTINCT user_id) AS retained_users,
  ROUND(COUNT(DISTINCT user_id) * 100.0 /
    FIRST_VALUE(COUNT(DISTINCT user_id)) OVER (
      PARTITION BY cohort_month ORDER BY period
    ), 1) AS retention_pct
FROM (
  SELECT
    u.id AS user_id,
    DATE_TRUNC('month', u.created_at) AS cohort_month,
    EXTRACT(MONTH FROM AGE(e.event_date, u.created_at))::int AS period
  FROM users u
  JOIN events e ON e.user_id = u.id
) cohort_data
GROUP BY cohort_month, period
ORDER BY cohort_month, period;

Dashboard Design Principles

  • One primary question per dashboard - "How is acquisition performing?" not "Everything about the business"
  • Context over data - show target vs actual, not just the number. A 5% conversion rate means nothing without context.
  • Time comparison always - every metric should show current period vs prior period (WoW, MoM, YoY)
  • Drill-down path - summary dashboard → segment breakdown → individual records. Never force users to build a new query to investigate.
  • Refresh cadence matches decision cadence - operational dashboards: hourly. Strategic dashboards: daily. Board dashboards: monthly.

Explore all agents

Browse the full library of specialized AI agents.