Use case

How to Analyze App Revenue Using AI

Compare subscription and one-time purchase revenue across complete periods, then inspect the products and customer segments behind a change using modeled metrics in Cube.

  • Define comparable app revenue
  • Compare complete periods
  • Trace shifts by product and account

What is app revenue analysis with AI?

For a mid-market app company, revenue analysis looks at customer charges and related adjustments across subscription and one-time purchases, then compares the amounts over time. A useful review keeps purchase types separate, uses the same completed periods, and shows which products or customer groups account for the movement.

This workflow reviews historical results from your company's app business through an existing Cube deployment. It does not estimate the market revenue of mobile apps, infer revenue from downloads, or forecast sales. Cube is the semantic layer for AI, so people and agents can use the same reviewed metric definitions.

Define what counts as app revenue

Agree on the event, date, currency, and adjustments before comparing periods. Do not combine customer purchase amounts with app-store proceeds unless both use the same approved revenue basis.

Illustrative metric definitions for two complete 30-day periods
MetricIllustrative example
Period boundariesPrior: Mar 2–31, 2026; current: Apr 1–30, 2026 (UTC). Each period contains 30 complete days.
Net customer revenuePrior: $510,000 settled charges − $18,000 refunds and credits = $492,000; current: $590,000 − $23,000 = $567,000. Sales tax is excluded.
Paying accounts8,100 and 8,700 distinct account IDs with positive net customer revenue in the respective period.
Purchase typeSubscription net: $424,000 → $475,000; one-time purchase net: $68,000 → $92,000.
Currency and accounting boundaryNormalize to USD using approved transaction-date exchange rates. This illustrative measure is not recognized revenue.
The Prompt

Copy. Paste. Run your app revenue review.

Connect to Cube through MCP or the CLI, select a deployment, and run this read-only review with your preferred agent.

Start with a Cube deployment connected to your data and a model containing the metrics you want to analyze.

01Connect over MCP

Connect over MCP

Connect your agent to your existing Cube deployment and sign in through OAuth.

MCP endpoint
https://cubecloud.dev/mcp
Sign in to Cube

Complete OAuth in your agent to connect your Cube account.

Choose a deployment

Use your default deployment or select another one available to your account.

Read the MCP setup docs
01Connect with CLI

Connect with CLI

Install the Cube CLI and sign in from a terminal-capable agent.

Install the CLI
curl -fsSL https://raw.githubusercontent.com/cube-js/cube/master/install-cli.sh | sh
Log in (replace TENANT with your account name)
cube login --url https://TENANT.cubecloud.dev
Inspect API operations
cube spec --json
Read the CLI docs

02Run this prompt in your agent

Choose your agent and copy the prompt below.

Prompt for Codex
Use the Cube MCP server connected in Codex and select the intended deployment. Run read-only analytics queries. Review app revenue in my connected Cube deployment using read-only requests. Do not change data, deployments, or model definitions. Inspect only data available to the connected account, and keep credentials and personal data private. DEFINITIONSInspect the available model and report the approved revenue metric, event grain, controlling date field, time zone, currency conversion, and treatment of taxes, refunds, credits, discounts, chargebacks, and fees. Identify whether the source represents customer charges, app-store proceeds, billings, cash collected, or recognized revenue. Do not treat those measures as interchangeable.Use a finance-approved definition if one exists. For a net customer revenue comparison, use settled customer charges less refunds and credits, excluding sales tax, only when the model supports that definition. Do not combine customer purchase amounts with store proceeds or processor settlements unless the model has normalized them to the same basis. If a required definition or field is missing, state the gap instead of inventing a measure or result. ANALYSIS1. Compare the 30 most recent complete UTC calendar days with the immediately preceding 30 complete days. State the exact inclusive dates and exclude any partial current day.2. For each period, report gross settled charges, refunds and credits, and net customer revenue using the same filters and currency basis. Show the absolute change and percentage change as (current period − prior period) ÷ prior period × 100. If the prior value is zero, report the percentage change as undefined.3. Break net revenue down by subscription and one-time purchase, then by available product, plan, channel, or region. Keep the same date, status, and currency rules for every segment. Confirm that the segment amounts reconcile to the total.4. Report distinct paying accounts and net revenue per paying account only if account grain is reliable. Define a paying account as a distinct account with positive net customer revenue during that period; calculate net revenue per paying account as total net customer revenue divided by that count. Do not use active users or transactions as the denominator.5. Check for missing dates, late-arriving store transactions, unknown currencies, duplicate joins, and small segment counts. Flag incomplete or non-comparable sources instead of smoothing or filling them. OUTPUTReturn the metric definitions, exact date filters, period comparison, segment table, and concise interpretation. Show the numerator and denominator for derived values and enough detail to reproduce every percentage. Separate observed changes from hypotheses about their causes. Do not claim that a segment caused a change, and do not forecast future revenue.

How it works

1

Set the revenue contract

Confirm which customer event, date field, currency, taxes, refunds, credits, fees, and account grain the modeled measure uses. Keep customer charges distinct from app-store proceeds and recognized revenue unless finance has reconciled them.

2

Compare like periods

Use two complete periods with the same length, time zone, filters, and currency conversion. Recompute net revenue from settled charges less the included adjustments, then verify the segment totals reconcile to the overall amount.

3

Find the parts behind the change

Compare subscriptions with one-time purchases and inspect available product, plan, channel, or account segments. A segment can point to a follow-up question; transaction detail and business context are needed to explain why it changed.

What an app revenue review can reveal

Compare net customer revenue across two complete 30-day periods and split it by purchase type. The chart and table use fictional values; the worked example shows how each total is calculated.

Worked example: fictional app revenue for two 30-day periods
MeasureMar 2–31Apr 1–30Change
Settled customer charges$510,000$590,000+$80,000 (+15.7%)
Refunds and credits$18,000$23,000+$5,000 (+27.8%)
Net customer revenue$492,000$567,000+$75,000 (+15.2%)
Unique paying accounts8,1008,700+600 (+7.4%)
Net revenue per paying account$60.74$65.17+$4.43 (+7.3%)
Subscription net revenue$424,000$475,000+$51,000 (+12.0%)
One-time purchase net revenue$68,000$92,000+$24,000 (+35.3%)
  • Net customer revenue rose by $75,000, from $492,000 to $567,000, or 15.2%. The current total is $590,000 in settled charges less $23,000 in refunds and credits.
  • Subscription revenue contributed $51,000, or 68.0%, of the increase. One-time purchases contributed $24,000, or 32.0%; their smaller starting base makes their 35.3% growth rate larger than the subscription rate.
  • Paying accounts increased 7.4%, while net revenue per paying account increased from $60.74 to $65.17, or 7.3%. These descriptive measures show what changed, not why customers spent more.

All numbers in the worked example and images are fictional and hand-calculated. They are not executed Cube results, customer data, a benchmark, or a forecast. Real results depend on the available model, source completeness, currency rules, refund timing, and finance's revenue policy.

Frequently Asked Questions

Start with the measure that matches the decision. For an operational net customer revenue comparison, a common definition is settled customer charges less refunds and credits, with taxes, fees, and timing rules stated explicitly. It is not automatically the same as app-store proceeds or accounting-recognized revenue.

Try Cube for free