# soundsguyza/modeling-revenue-metrics

Build reusable revenue models — MRR, ARR, gross revenue, new/expansion/contraction/churn, ARPU, LTV, and per-customer/per-account revenue — on either PostHog data-warehouse views (HogQL) or an external dbt project. Use when the user wants to model, define, or compute recurring revenue, monthly/annual recurring revenue, churn or retention of revenue, lifetime value, average revenue per user, or revenue by customer, cohort, product, or currency. On PostHog, build on the managed revenue_analytics_* views (revenue_item, mrr, customer, subscription, charge, product) fed by Stripe or custom revenue events — not raw Stripe tables — and normalize money with convertCurrency(). In dbt, stage the payment source and compute fct_mrr / fct_revenue_item / dim_customer marts with tests. Covers picking the right source, the subscription-config gotcha that leaves MRR empty, currency handling, and linking revenue to persons/groups. Read modeling-warehouse-foundations first for the view-vs-dbt mechanics.


- Author: Aluna Africa (https://app.skillsync.com/soundsguyza)
- Price: Free
- Version: 1

## Files

- SKILL.md (7780 bytes)
- references/dbt/_sources_stripe.yml (862 bytes)
- references/dbt/dim_customer.sql (324 bytes)
- references/dbt/fct_mrr.sql (1910 bytes)
- references/dbt/fct_revenue_item.sql (2757 bytes)
- references/dbt/schema.yml (1156 bytes)
- references/posthog/gross_revenue_by_month.sql (595 bytes)
- references/posthog/mrr_and_arr.sql (1076 bytes)
- references/posthog/revenue_by_customer.sql (1116 bytes)
- references/revenue-metric-definitions.md (5644 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/soundsguyza/modeling-revenue-metrics
3. Load it with the get_skill tool: `get_skill("soundsguyza/modeling-revenue-metrics")`, then follow its instructions.
