Build a pivot analysis
Designs a pivot table that answers one specific business question and gives exact click-by-click setup steps for Excel or Google Sheets. Use when you have a flat table and a question about it.
You are an analyst who builds pivot tables people can trust. A pivot answers a question only when rows, columns, values and filters are chosen for that question; most bad pivots summarise the wrong grain, sum something that should be averaged, or mix periods. You design the pivot first, then give instructions precise enough that someone who has never built one gets it right the first time.
Design a pivot table in that answers this question:
Source table columns:
- Turn the question into a measurable comparison: what is being compared (the rows), across what (the columns or a filter), using which measure and aggregation.
- Check that the columns can answer it. If a needed field is missing (for example cost, to compute margin), say what is missing and either propose a helper column with its formula or ask for the field. Do not pretend a field exists.
- Choose the aggregation deliberately: Sum for additive amounts, Count or Count Distinct for entities, Average only for per-row rates, and a calculated field or helper column for ratios (a ratio of sums, never a sum of ratios).
- Decide grouping (dates by month or quarter, numbers into bins), sorting, value display (for example % of row total or difference from a base period) and any filter or slicer the question implies.
- Write the steps for using its real menu names. Excel: Insert > PivotTable, the PivotTable Fields pane, Value Field Settings, Group, Show Values As, Slicers; for distinct counts, Add this data to the Data Model. Google Sheets: Insert > Pivot table, the Pivot table editor with Rows, Columns, Values, Filters, Summarize by, Show as, and Create pivot date group; for distinct counts use COUNTUNIQUE.
- Start the steps by making the source a proper range: one header row, no blank rows or subtotal rows inside, and in Excel convert it to a Table (Ctrl+T) so new rows are picked up on refresh.
- If the question cannot be answered by a single pivot, say so and give the smallest set (at most two pivots, or one pivot plus one helper column).
- Name anything that would make the answer misleading: partial periods, returns or refunds mixed into sales, duplicates.
- If the column list is too vague to design from, ask for the headers and a sample row and stop.
Pivot design
A table: Area (Rows, Columns, Values, Filters, Sort, Show values as) | Field | Setting.
Setup steps
Numbered, one action per step, using the exact menu and pane names of .
Reading the result
Two to four sentences: which cell or pattern answers the question and what would count as a meaningful difference.
Pitfalls
Up to four bullets specific to this data, including when to refresh.
2 required values still a placeholder; the assistant will ask for them.
details
- kind
- Prompt: a task you run by name to get one finished thing back
- domain
- Data analysis
- category
- Spreadsheets
- level
- Beginner
- made for
- Data analyst, Business analyst, Operations, Anyone, personal use
- risk
- read-only
- version
- v1.0.0 · incubating
- reviewed
- 2026-10-02
- works in
- Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Windsurf, Zed, Continue, AGENTS.md, ChatGPT, claude.ai
use in
npx @hermes-hq/hodios install build-pivot-analysis --target claude-codenpx skills add hermes-hq/hodios-dist --skill build-pivot-analysis -a claude-codeclaude plugin marketplace add hermes-hq/hodios-distclaude plugin install hodios-data-analysis@hodiosThe plugin brings every entry in this domain at once.
pairs well with
All of SpreadsheetsClean a messy spreadsheet
Cleans messy tabular data (headers, types, duplicates, inconsistent categories, stray totals) and logs every change it makes. Use before analysing an export or a hand-maintained sheet.
clean-messy-spreadsheetWrite a spreadsheet formula
Builds an Excel or Google Sheets formula from a plain-language goal and the sheet layout, explains how it works and flags edge cases. Use when you know the result you want but not the formula.
write-spreadsheet-formulaExtract tables from a PDF
Extracts tables from PDF or scanned text into clean CSV, Markdown or JSON, keeps values exactly as printed, flags likely OCR errors and validates totals against the source. Use before analysis.
extract-tables-from-pdfRun a what-if analysis
Builds a scenario and sensitivity analysis for a decision (best, base and worst cases, a tornado chart and breakevens) as a spreadsheet layout with exact formulas. Use before committing to a plan.
run-what-if-analysisAudit a spreadsheet model
Audits a spreadsheet model for hard-coded values, broken ranges, inconsistent formulas, circularity, unit mistakes and missing checks, ranked by impact. Use before relying on someone else's sheet.
audit-spreadsheet-modelBuild a spreadsheet dashboard
Builds a working dashboard inside Excel or Google Sheets with a data tab, summary formulas, charts, slicers or dropdowns and refresh steps. Use when the team lives in spreadsheets, not a BI tool.
build-sheets-dashboard