-
Notifications
You must be signed in to change notification settings - Fork 2
Update/readme 2026 01 #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+26
−4
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5fea0c9
update/readme-2026-01
fivetran-catfritz c1d9117
update/readme-2026-01
fivetran-catfritz 03b8363
add analysis readme and renamem folder to analyses
fivetran-catfritz 1a16b77
Generate dbt docs via GitHub Actions
github-actions[bot] ac6e6d3
update links
fivetran-catfritz 6b6a7a2
fix
fivetran-catfritz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Zuora Analysis | ||
| > Note: The compiled sql within the `analyses` folder references the final models [zuora__account_daily_overview](https://github.com/fivetran/dbt_zuora/blob/main/models/zuora__account_daily_overview.sql) and [zuora__line_item_history](https://github.com/fivetran/dbt_zuora/blob/main/models/zuora__line_item_history.sql). Before you can compile and use the analysis SQL, you'll must execute a `dbt run` first. | ||
|
|
||
|
|
||
| ## Analysis SQL | ||
| | **sql** | **description** | | ||
| | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | [zuora__account_churn_analysis](https://fivetran.github.io/dbt_zuora/#!/analysis/analysis.zuora.zuora__account_churn_analysis) | The output of the compiled sql will generate monthly account churn analysis by identifying when accounts transition from active to inactive status. The analysis provides insights into account retention patterns by tracking rate plan charges per account over time and flagging churned months when an account goes from having active charges to no active charges. The SQL references the `zuora__account_daily_overview` and `zuora__line_item_history` models and includes `source_relation` to support multi-connection setups. | | ||
|
|
||
| ## SQL Compile Instructions | ||
| Leveraging the above sql is made possible by the [analysis functionality of dbt](https://docs.getdbt.com/docs/building-a-dbt-project/analyses/). In order to | ||
| compile the sql, you will perform the following steps: | ||
| - Execute `dbt run` to create the package models. | ||
| - Execute `dbt compile` to generate the target specific sql. | ||
| - Navigate to your project's `/target/compiled/zuora/analyses` directory. | ||
| - Copy the desired analysis code (`zuora__account_churn_analysis`) and run in your data warehouse. | ||
| - Confirm the account churn metrics match your expected subscription patterns. | ||
| - Analyze the monthly churn data to identify trends and patterns in customer retention and account lifecycle management. | ||
|
|
||
| ## Contributions | ||
| Don't see a compiled sql statement you would have liked to be included? Notice any bugs when compiling | ||
| and running the analysis sql? If so, we highly encourage and welcome contributions to this package! If interested, the best first step is [opening a feature request](https://github.com/fivetran/dbt_zuora/issues/new?template=feature-request.yml). |
File renamed without changes.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also update the table description in the README to link to the docs page. Currently we link to the github file. See here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated both!