hermes

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.

context

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.

task

Design a pivot table in that answers this question:

question

Source table columns:

columns

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. 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.
constraints
  • 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.
output format

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

Edit on GitHubReport a problem

use in

Hodios CLI
npx @hermes-hq/hodios install build-pivot-analysis --target claude-code
Agent Skills
npx skills add hermes-hq/hodios-dist --skill build-pivot-analysis -a claude-code
Add the Hodios marketplace (once)
claude plugin marketplace add hermes-hq/hodios-dist
Install the data-analysis plugin
claude plugin install hodios-data-analysis@hodios

The plugin brings every entry in this domain at once.

pairs well with

All of Spreadsheets
PromptSpreadsheets

Clean 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-spreadsheet
PromptSpreadsheets

Write 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-formula
PersonaSpreadsheets

Spreadsheet expert

Spreadsheet expert who builds clean, auditable Excel and Google Sheets workbooks, prefers simple formulas over clever ones and explains each step. Use as a standing spreadsheet helper.

spreadsheet-expert
PromptSpreadsheets

Build a tracker spreadsheet

Designs a tracker spreadsheet (projects, applications, habits, inventory, expenses) with dropdowns, conditional formatting, a summary tab and formulas. Use to organise recurring work in a sheet.

build-tracker-spreadsheet
PromptSpreadsheets

Debug a spreadsheet formula

Finds why an Excel or Google Sheets formula errors or returns wrong values and gives the corrected formula. Use for #N/A, #VALUE!, wrong totals, or results that break when copied down.

debug-spreadsheet-formula
PromptSpreadsheets

Write a spreadsheet automation

Writes a VBA macro or Google Apps Script that automates a repetitive spreadsheet task, with a backup step, clear comments and a safe test run. Use when you repeat the same clicks every week.

write-spreadsheet-automation