Spec and Build a Weekly KPI Dashboard in Claude Data

Get a checked weekly KPI dashboard spec with exact definitions, visible queries, week-over-week comparisons, RAG rules and a data checks panel, then the build.

Text prompt for Claude

You get: KPI spec table, week boundaries and time zone and queries

Prompt

Prompt
You are a senior analytics engineer building a weekly KPI dashboard in Claude Data from my connected warehouse or CRM.

Before building, ask me these in one message and wait for my answers:
1. Which team is this for, and who reads it?
2. Which connector and table names should you use?
3. What are the 5-8 KPIs, and do any have targets?
4. Which time zone, and does the week start Monday or Sunday?

Then inspect the connected schema and write the spec before building.

Rules:
- Use only the connected tables. If a KPI cannot be computed from them, write 'cannot compute from connected tables', name the missing table or column, and skip it. Never guess.
- Show every query in full so I can check it.
- Compare this week vs last week and vs the trailing 4-week average, using complete weeks only.
- Give each KPI a target or threshold and a red/amber/green rule with exact cutoffs.
- State any assumption about joins, duplicates or status values.

Output format:
1. KPI spec table: KPI | Definition | Numerator / Denominator | Source table and columns | Target | RAG rule
2. Week boundaries and time zone, stated once.
3. Queries: one labelled query per KPI.
4. Layout: top-row KPI tiles, 12-week trend lines, one breakdown table, filters.
5. Data checks panel: weekly row counts, null rates on key columns, late-arriving rows since last refresh.
6. Then build the dashboard.

End with open questions and risks, such as late data or KPIs you skipped.

Example output

KPI targets and Green thresholdsFour computable KPIs; NRR skipped for missing data
ItemTargetRed below
New pipeline ($)$400k$320k
Win rate25%20%
Meetings held6048
Avg deal size$18k$15k
Net revenue retentionn/aSkipped

Example for: the sales team at Tidewell Analytics (fictional), Snowflake connector, Monday weeks, America/Chicago.

1. KPI spec

KPIDefinitionNumerator / DenominatorSourceTargetRAG rule
New pipeline ($)Sum of amount on opps created in weekSUM(amount) / n/acrm_opportunities: created_at, amount$400kGreen ≥ $400k, Amber $320k-$399k, Red < $320k
Win rateWon ÷ closed in weekWon opps / Won + Lost oppscrm_opportunities: closed_at, stage25%Green ≥ 25%, Amber 20-24.9%, Red < 20%
Meetings heldMeetings with status 'held'COUNT / n/acrm_meetings: meeting_at, status60Green ≥ 60, Amber 48-59, Red < 48
Avg deal sizeMean amount of won oppsSUM(amount) / COUNT woncrm_opportunities$18kGreen ≥ $18k, Amber $15k-$17.9k, Red < $15k
Net revenue retentioncannot compute from connected tablesn/aMissing: renewals or contract tablen/aSkipped

2. Weeks

Monday 00:00 to Sunday 23:59, America/Chicago. Current partial week is excluded.

3. Queries

Q1 New pipeline
SELECT DATE_TRUNC('week', CONVERT_TIMEZONE('America/Chicago', created_at)) AS wk, SUM(amount) FROM crm_opportunities WHERE is_deleted = FALSE GROUP BY 1;

Q2 Win rate
SELECT DATE_TRUNC('week', CONVERT_TIMEZONE('America/Chicago', closed_at)) AS wk, COUNT_IF(stage = 'Closed Won') / NULLIF(COUNT_IF(stage IN ('Closed Won','Closed Lost')), 0) FROM crm_opportunities GROUP BY 1;

Q3 Meetings held
SELECT DATE_TRUNC('week', CONVERT_TIMEZONE('America/Chicago', meeting_at)) AS wk, COUNT(*) FROM crm_meetings WHERE status = 'held' GROUP BY 1;

Q4 Avg deal size
SELECT DATE_TRUNC('week', CONVERT_TIMEZONE('America/Chicago', closed_at)) AS wk, AVG(amount) FROM crm_opportunities WHERE stage = 'Closed Won' GROUP BY 1;

Each result feeds: this week, last week, and the trailing 4-week average.

4. Layout

  • Top row: four KPI tiles with value, change vs last week, change vs 4-week average, RAG colour.
  • Trend lines: 12 weeks per KPI with target line.
  • Breakdown table: KPIs by owner_region.
  • Filters: owner_region, deal_type.

5. Data checks panel

  • Weekly row counts for both tables, flag weeks below 70% of the 4-week average.
  • Null rate on amount, closed_at, owner_region.
  • Rows with updated_at after last refresh but dated in a closed week.

6. Build

Dashboard built with the four computable KPIs.

Open questions and risks: Does 'held' exclude no-shows logged late? Assumed is_deleted = FALSE removes merged duplicates. NRR needs a renewals table connected.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Forcing every query into view lets you check joins, filters and time zones before trusting a number on the dashboard.
  • The 'cannot compute from connected tables' rule stops Claude from inventing a metric when the data simply isn't there.
  • Comparing against both last week and a 4-week average, with fixed RAG cutoffs, makes each tile readable at a glance.

As of November 2026, per Anthropic, Claude Data (formerly Claude Dashboards) is on all paid plans and needs a warehouse or CRM connector; certified queries and live sharing are in beta. Only a CSV? Use 'Turn My CSV Into an Interactive Dashboard, Offline' (/prompts/turn-my-csv-into-an-interactive-dashboard-offline) instead.

Common edits

  • Change the 12-week trend window to 26 weeks for slower-moving KPIs like retention.
  • Add a second breakdown table by product line or rep if your tables carry those columns.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

More in Data Analysis
Data Analysis

Clean inconsistent date formats and text categories

Turn chaotic timestamp formats and varied categorical spellings into unified standards. Use it when mismatched export values break dashboards.

Data Analysis

Differentiate structural null values from missing data

Identify whether null values represent expected business logic or export dropouts. Use it when auditing schema quality or preparing datasets for modeling.

Data Analysis

Compare Two Document Versions by Added, Removed, and Reworded Text

Get a structured diff report separating added, removed, and reworded text with exact paragraph or line locations.

Data Analysis

Convert a Markdown Table to CSV or JSON with Row and Column Validation

You get a clean CSV or JSON conversion of your Markdown table, plus a row-and-column count check that flags any ragged rows.

Data Analysis

Plan Dataset Anonymisation with a Column-by-Column Action Table

Get a column-by-column anonymisation plan specifying whether to drop, mask, bucket, or keep each field before sharing data externally.

Data AnalysisClaude

Turn Chart Data Into a Captioned Video With WebM Export

Get one offline HTML file that turns pasted chart data into a 20-second captioned video you can scrub, step through live and export as WebM in 16:9 or 9:16.