---
name: compare-spend-periods
description: "MoM or QoQ spend comparison — totals, top movers, and percent change."
title: "Compare spend across periods"
url: https://agents.ramp.com/playbooks/compare-spend-periods
runtimes: [Claude Desktop, ChatGPT, Claude Code, Codex, Perplexity]
---

# Compare spend across periods

Finance reviews need period-over-period context, not just a single snapshot. Your agent compares two time windows, highlights percent change, and surfaces the vendors and categories that moved the most.

## How to run

Identify which runtime you're operating in (Claude Desktop, ChatGPT, Claude Code, Codex, Perplexity). Use the matching section below; ignore the others.

## Claude Desktop

Copy and run this prompt:

```
## Before you run
- Ramp connector enabled in Claude Desktop ([connector directory](https://claude.ai/directory/61bac03c-3f98-4b3c-affb-1b99533fa82c))

Compare Ramp spend across two periods.

Current period: [REPLACE — e.g. "March 2026"]
Prior period: [REPLACE — e.g. "February 2026" or "March 2025"]

Use structured aggregate reporting:
1. Total spend in each period and percent change
2. Top vendors and categories in each period
3. Biggest movers — vendors or categories with the largest increase or decrease

Read-only. Do not change anything in Ramp.
```

## ChatGPT

Copy and run this prompt:

```
## Before you run
- Ramp connector enabled in ChatGPT ([app](https://chatgpt.com/apps/ramp/asdk_app_69250fb6281c819195b52a1556b0060c))

Compare Ramp spend across two periods.

Current period: [REPLACE — e.g. "March 2026"]
Prior period: [REPLACE — e.g. "February 2026" or "March 2025"]

Use structured aggregate reporting:
1. Total spend in each period and percent change
2. Top vendors and categories in each period
3. Biggest movers — vendors or categories with the largest increase or decrease

Read-only. Do not change anything in Ramp.
```

## Claude Code

Copy and run this prompt:

```
## Before you run
- Ramp CLI installed: `curl -fsSL https://agents.ramp.com/install.sh | bash`
- Logged in: `ramp auth login`

Compare Ramp spend across two periods.

Current period: [REPLACE — e.g. "March 2026"]
Prior period: [REPLACE — e.g. "February 2026" or "March 2025"]

Use structured aggregate reporting:
1. Total spend in each period and percent change
2. Top vendors and categories in each period
3. Biggest movers — vendors or categories with the largest increase or decrease

Read-only. Do not change anything in Ramp.
```

## Codex

Copy and run this prompt:

```
## Before you run
- Ramp CLI installed: `curl -fsSL https://agents.ramp.com/install.sh | bash`
- Logged in: `ramp auth login`

Compare Ramp spend across two periods.

Current period: [REPLACE — e.g. "March 2026"]
Prior period: [REPLACE — e.g. "February 2026" or "March 2025"]

Use structured aggregate reporting:
1. Total spend in each period and percent change
2. Top vendors and categories in each period
3. Biggest movers — vendors or categories with the largest increase or decrease

Read-only. Do not change anything in Ramp.
```

## Perplexity

Copy and run this prompt:

```
## Before you run
- Ramp connector enabled in Perplexity ([connector](https://www.perplexity.ai/computer/connectors?connector=ramp))

Compare Ramp spend across two periods.

Current period: [REPLACE — e.g. "March 2026"]
Prior period: [REPLACE — e.g. "February 2026" or "March 2025"]

Use structured aggregate reporting:
1. Total spend in each period and percent change
2. Top vendors and categories in each period
3. Biggest movers — vendors or categories with the largest increase or decrease

Read-only. Do not change anything in Ramp.
```
