金融建模软件包创建的指标存储
我们将逐步介绍在您的 Metabase 中设置指标存储时,财务建模软件包创建的模型。

本节提供有关 dap create
命令创建的模型和问题的一些背景信息,因此即使该软件包不适合您,您仍然可以获得可以迭代的示例。
dap
命令假设您正在使用来自 Stripe 的数据。
模型概述
该软件包基于导入到 PostgreSQL 数据仓库的原始数据创建了一些基础模型。然后,该软件包在这些基础模型的基础上构建,以聚合以下数据:
- 年度经常性收入 (ARR)
- 试用用户
- 客户
一旦软件包拥有这些模型,它将创建两个问题来捆绑这些指标:一个问题用于导出最新指标,另一个问题用于导出季度指标。
从那里,您可以将数据导入到财务建模模板并开始使用它。
基础模型
首先,该软件包获取从 Stripe 提取的原始数据,对其进行清理,并将结果保存为模型:Stripe price 模型和 Stripe customer 模型。这些模型只是清理和合并 Fivetran 从 Stripe 导入的数据中的值。
- Stripe price 模型 SQL。将来自 Stripe
price
和product
表的原始数据汇集在一起。 - Stripe customer 模型 SQL。将来自 Stripe
customer
和card
表的数据汇集在一起。
该软件包基于这些模型构建,并提取更多原始 Stripe 数据以完善基础模型集。
- Stripe subscription item 模型。此模型基于 Stripe price 模型构建,并引入来自 Stripe
tier
和subscription_item
表的原始数据。 - Stripe subscription 模型。此模型基于我们上面构建的 Stripe subscription item 模型和 Stripe customer 模型构建。它还整合了来自 Stripe
subscription
原始表的数据。 - Stripe invoice 模型。此模型将来自 Stripe
invoice
表以及customer
和subscription
模型的数据汇集在一起。
计算收入
在我们的 Stripe invoice 和 Stripe subscription 模型之上,该软件包可以计算收入。此 Revenue 模型包括以下列
id
customer_name
recognized_at
month
amount
is_actual
is_auto_renewal
product_name
billing_cycle
stripe_customer_id
stripe_subscription_id
stripe_product_id
请参阅Revenue 模型的 SQL。
聚合每月和每季度指标
定义上述模型后,该软件包可以聚合关键的每月指标
然后,基于这些每月指标,该软件包计算季度总数
创建公共问题以导入到您的财务模型模板中
在我们所有模型就位后,该软件包然后在 Metabase 中创建两个问题,并通过公共链接使其可用。通过使链接公开,财务模型模板(Google Sheet)将能够访问公共链接并将数据作为 CSV 文件导入。
这些问题联合了我们感兴趣的大量指标,然后我们可以在财务模型模板中对这些指标进行透视分析
quarter
quarter_name
metric
value
指标包括
Annual Contract Value
ARR Quarterly Expansion Rate
ARR % Quarterly growth
ARR % YoY growth
Avg Monthly Customer Churn Rate
Beginning ARR
Beginning customers
Churn ARR
Churn customers
Contraction ARR
Customers % Quarterly growth
Customers % YoY growth
Ending ARR
Ending customers
Expansion ARR
New ARR
New customers
Trialer % Quarterly growth
Trial Quarterly Conversion Rate
虽然这些链接是“公共的”,但 Metabase 的 URL 实际上是无法猜测的。但请记住,任何拥有该链接的人都可以查看该 URL 上可用的数据。