CW-201b · Module 2

Financial Data Pipeline

4 min read

Financial analysis with Claude follows a strict pipeline: ingest, validate, analyze, report. Skip any stage and the output is unreliable. The most common mistake is jumping straight from data upload to analysis — feeding Claude a spreadsheet and asking "what do you see?" That produces a plausible-sounding narrative built on data that Claude may have misread, misaligned, or misinterpreted.

The ingest stage is mechanical but critical. When Claude reads a CSV or spreadsheet, it must confirm: how many rows and columns it found, what the column headers are, what data types it detected (currency, percentage, date, count), and whether there are any missing or anomalous values. You review this summary before proceeding. If Claude says it found 12 columns but your spreadsheet has 14, something was truncated. If it says the revenue column is a string type, the currency formatting confused the parser. Catch these errors at ingest, not after the analysis is complete.

The validation stage is where you save yourself from the most embarrassing errors. Claude should recalculate totals and verify they match the source data. Revenue line items should sum to the revenue total. Operating expenses should subtract to the operating income. Balance sheet assets should equal liabilities plus equity. These are mechanical checks that take Claude seconds and catch data parsing errors that would invalidate the entire analysis.

The analysis stage comes only after ingest and validation are clean. Now you can ask Claude to identify trends, calculate ratios, perform variance analysis, and build projections. But even here, structure matters. Tell Claude which metrics to calculate. Tell Claude which comparisons to make. "Calculate YoY revenue growth, gross margin trend over 4 quarters, and variance between actual and budgeted OPEX" is a prompt that produces verifiable output. "Analyze this financial data" is a prompt that produces narrative that sounds smart but may not be correct.

  1. 1. Structured Ingest Upload the data and ask Claude to confirm: row count, column headers, detected data types, missing values, and any anomalies. Review this summary before proceeding. If the ingest is wrong, everything downstream is wrong.
  2. 2. Mechanical Validation Claude recalculates totals, subtotals, and balances. Revenue items sum to revenue. Expenses subtract to income. Assets equal liabilities plus equity. Any discrepancy means a parsing error occurred — go back to ingest and fix it.
  3. 3. Specified Analysis Name the exact metrics, ratios, and comparisons you want. YoY growth, margin analysis, variance to budget, trend identification over specific periods. Do not ask for "analysis" in the abstract — name what you need.
  4. 4. Formatted Report The output should match your audience. A board deck gets 3 charts and an executive summary. A finance team gets the full data tables with commentary. A department head gets their specific budget variance with action items.