Revenue review
Snowflake orders joined with BigQuery CRM accounts. Refreshed daily.
Snowflake orders joined with BigQuery CRM accounts. Refreshed daily.
SELECT order_id, account_id, order_month, amount_usd
FROM analytics.marts.fct_orders
WHERE order_month >= '2026-01-01'| order_idUtf8 | account_idUtf8 | order_monthDate | amount_usdDecimal(12, 2) |
|---|---|---|---|
| ord_90412 | acc_1182 | 2026-09-01 | 18,400.00 |
| ord_90413 | acc_0457 | 2026-09-01 | 2,950.00 |
| ord_90414 | acc_2210 | 2026-09-01 | 41,200.00 |
SELECT account_id, segment, region
FROM crm.accounts| account_idUtf8 | segmentUtf8 | regionUtf8 |
|---|---|---|
| acc_1182 | Enterprise | North America |
| acc_0457 | SMB | EMEA |
| acc_2210 | Enterprise | APAC |
SELECT o.order_month AS month, a.segment, a.region,
SUM(o.amount_usd) AS revenue
FROM orders o JOIN accounts a USING (account_id)
GROUP BY ALL ORDER BY month| monthDate | segmentUtf8 | regionUtf8 | revenueDecimal(14, 2) |
|---|---|---|---|
| 2026-09-01 | SMB | North America | 145,672 |
| 2026-09-01 | SMB | EMEA | 85,127 |
| 2026-09-01 | SMB | APAC | 47,859 |
period = alkera.ui.range_slider(
months(revenue), value=("Jan", "Sep"), label="Months",
)in_period = revenue.filter(period.contains("month"))
alkera.hstack([
alkera.callout(f"**{usd(in_period)}** revenue", kind="success"),
alkera.callout(f"**{share(in_period, 'Enterprise'):.0%}** Enterprise"),
alkera.callout(f"**{usd(monthly(in_period))}** per month"),
])alkera.chart(revenue.filter(period.contains("month"))).line(
x="yearmonth(month)", y="sum(revenue)", color="segment",
).title("Monthly revenue by segment").tooltip()alkera.chart(revenue.filter(is_q3)).bar(
y="region", x="sum(revenue)", color="segment",
).title("Q3 revenue by region").tooltip()alkera.chart(revenue.filter(period.contains("month"))).pie(
theta="sum(revenue)", color="segment", inner_radius=54,
).title("Revenue mix").tooltip()