Skip to templates
AI Craft Pad
Reporting · ORIGINAL TEMPLATE

Calculate weekly metric changes

Turn two numeric snapshots into a reviewable change table.

Browser + n8n starterMIT · AI Craft PadUpdated 2026-11-02

What this template does

Calculate the numeric difference and percentage change for each named metric. A zero baseline produces a null percentage because a conventional growth percentage is undefined.

Prepare these inputs

Numeric current and previous values with matching periods and units. The template does not establish causation, check analytics instrumentation or convert currencies.

Field map: metric, current, previous

TRY THE WORKING DATA STEP

From input to reviewable output.

Use the synthetic example or edit its JSON structure. This demo sends no input to an AI service or our server. Keep real personal data in your approved environment. Up to 1,000 records and 100 KB of JSON.

Ready. Run the sample to inspect the result.

Use the starter in n8n

  1. Download the JSON and import it using n8n’s import-from-file option. Keep it unpublished.
  2. Inspect the three nodes: Manual start → Sample input → Reviewable output. Run it manually with the synthetic example.
  3. Compare records, rejected and the counts with the demo here. The output is one item containing an envelope; split the records array if a later node expects individual items.
  4. Replace Sample input with an approved source only after mapping its data to the same single-item JSON structure shown above. Supply an explicit as_of where required.
  5. Add a separate review or approval step before any external write. Test credentials and permissions in your own environment, then decide whether a schedule is appropriate.

The download has no live connector, schedule, credential or external request. Connecting a mailbox, CRM, spreadsheet or notification destination is a separate setup and test.

Download n8n starter JSON

SHA-256: 5760eacc489b5e68d1d99954e5945251b2f49f95e52b2a3a92c2a664f8c461fa

Limits and review points

Confirm equal date ranges, time zones and definitions before comparing. Percentage uses the absolute previous value; interpret negative baselines separately.

Rejected rows are returned with their one-based input position and a reason. Review them before using the result; an empty output can be a valid outcome. Unknown or malformed top-level inputs produce an error instead of a guessed result. Keep an untouched input export for reconciliation.

Run costs and data handling

The browser step has no service fee, API call or account requirement. It uses no browser storage for your input. Ordinary website access logs still apply. Downloaded results are saved only when you request them. Your own n8n hosting, cloud plan and any later connected service may have charges; no paid AI model is required by this starter.

More useful data steps