Skip to content

Commit 34130dc

Browse files
fivetran-data-model-botClaude README Updaterfivetran-catfritzgithub-actions[bot]
authored
Update .quickstart.yml and README (#70)
* Update .quickstart.yml and README for fy26 q4 * Fix spelling errors CHANGELOG and/or quickstart.yml * Fix spelling errors CHANGELOG and/or quickstart.yml * Fix links * Fix Quickstart guide link * pr revisions * fix spelling * Generate dbt docs via GitHub Actions * Update README.md --------- Co-authored-by: Claude README Updater <noreply@fivetran.com> Co-authored-by: Catherine Fritz <111930712+fivetran-catfritz@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a4e4bf8 commit 34130dc

File tree

7 files changed

+86
-30
lines changed

7 files changed

+86
-30
lines changed

.quickstart/quickstart.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ table_variables:
1717
- _tracking_category_option
1818
- _tracking_category_has_option
1919

20+
_fivetran_quickstart_contact:
21+
- _contact
22+
2023
destination_configurations:
2124
databricks:
2225
dispatch:
@@ -29,3 +32,11 @@ public_models: [
2932
"xero__invoice_line_items",
3033
"xero__general_ledger"
3134
]
35+
36+
supported_vars:
37+
xero__calendar_start_date:
38+
type: string
39+
value: "2019-01-01"
40+
description: "Start date for the window of data to transform (YYYY-MM-DD format)"
41+
display_name: "Date Range Start"
42+

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# dbt_xero v1.2.0
2+
3+
[PR #70](https://github.com/fivetran/dbt_xero/pull/70) includes the following updates:
4+
5+
## Documentation
6+
- Updates README with standardized Fivetran formatting.
7+
8+
## Under the Hood
9+
- In the `quickstart.yml` file:
10+
- Adds `table_variables` for relevant sources to prevent missing sources from blocking downstream Quickstart models.
11+
- Adds `supported_vars` for Quickstart UI customization.
12+
113
# dbt_xero v1.1.1
214
[PR #67](https://github.com/fivetran/dbt_xero/pull/67) includes the following updates:
315

README.md

Lines changed: 59 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Xero dbt Package ([Docs](https://fivetran.github.io/dbt_xero/))
1+
<!--section="xero_transformation_model"-->
2+
# Xero dbt Package
23

34
<p align="left">
45
<a alt="License"
@@ -11,49 +12,76 @@
1112
<a alt="PRs">
1213
<img src="https://img.shields.io/badge/Contributions-welcome-blueviolet" /></a>
1314
<a alt="Fivetran Quickstart Compatible"
14-
href="https://fivetran.com/docs/transformations/dbt/quickstart">
15+
href="https://fivetran.com/docs/transformations/data-models/quickstart-management#quickstartmanagement">
1516
<img src="https://img.shields.io/badge/Fivetran_Quickstart_Compatible%3F-yes-green.svg" /></a>
1617
</p>
1718

19+
This dbt package transforms data from Fivetran's Xero connector into analytics-ready tables.
20+
21+
## Resources
22+
23+
- Number of materialized models¹: 35
24+
- Connector documentation
25+
- [Xero connector documentation](https://fivetran.com/docs/connectors/applications/xero)
26+
- [Xero ERD](https://fivetran.com/docs/connectors/applications/xero#schemainformation)
27+
- dbt package documentation
28+
- [GitHub repository](https://github.com/fivetran/dbt_xero)
29+
- [dbt Docs](https://fivetran.github.io/dbt_xero/#!/overview)
30+
- [DAG](https://fivetran.github.io/dbt_xero/#!/overview?g_v=1)
31+
- [Changelog](https://github.com/fivetran/dbt_xero/blob/main/CHANGELOG.md)
32+
1833
## What does this dbt package do?
19-
- Produces modeled tables that leverage Xero data from [Fivetran's connector](https://fivetran.com/docs/applications/xero) in the format described by [this ERD](https://fivetran.com/docs/applications/xero#schemainformation).
34+
This package enables you to produce modeled tables, provide analytics-ready models, and generate comprehensive data dictionaries. It creates enriched models with metrics focused on profit and loss reports, general ledgers, and balance sheet reports.
35+
36+
> Note: Currently, our dbt models for Xero have limited support for multi-currency accounting, particularly for handling unrealized currency gains and losses and bank revaluations, as they require historical or current exchange rate data that is not available in the Xero connector to fully calculate.
37+
38+
### Output schema
39+
Final output tables are generated in the following target schema:
2040

21-
- Provides analytics-ready models, including a profit and loss report, general ledger, and balance sheet report.
22-
- Generates a comprehensive data dictionary of your source and modeled Xero data through the [dbt docs site](https://fivetran.github.io/dbt_xero/).
41+
```
42+
<your_database>.<connector/schema_name>_xero
43+
```
2344

24-
<!--section=“xero_transformation_model"-->
45+
### Final output tables
2546

26-
The following table provides a detailed list of all tables materialized within this package by default.
47+
By default, this package materializes the following final tables:
2748

28-
| **Table** | **Description** |
29-
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
30-
| [xero__general_ledger](https://github.com/fivetran/dbt_xero/blob/main/models/xero__general_ledger.sql) | Each record represents a journal line item. Use the ledger to create the balance sheet and the profit and loss statement. |
31-
| [xero__profit_and_loss_report](https://github.com/fivetran/dbt_xero/blob/main/models/xero__profit_and_loss_report.sql) | Each record represents a profit and loss line item at the month and account level. |
32-
| [xero__balance_sheet_report](https://github.com/fivetran/dbt_xero/blob/main/models/xero__balance_sheet_report.sql) | Each record represents the state of the balance sheet for a given account on a given month. |
33-
| [xero__invoice_line_items](https://github.com/fivetran/dbt_xero/blob/main/models/xero__invoice_line_items.sql) | Each record represents an invoice line item enriched with the account, contact, and invoice information. |
49+
| Table | Description |
50+
| :---- | :---- |
51+
| [xero__general_ledger](https://github.com/fivetran/dbt_xero/blob/main/models/xero__general_ledger.sql) | Tracks every journal line item with debits, credits, and account classifications to provide a complete transaction history for building financial statements and analyzing account activity. <br></br>**Example Analytics Questions:**<ul><li>What is the total net amount by account class (asset, liability, equity, revenue, expense) for a given period?</li><li>Which accounts have the highest transaction volumes or largest balance changes?</li><li>How do journal entries by source type (invoice, payment, manual) contribute to overall financial activity?</li></ul>|
52+
| [xero__profit_and_loss_report](https://github.com/fivetran/dbt_xero/blob/main/models/xero__profit_and_loss_report.sql) | Summarizes monthly profit and loss by account with net amounts to track revenue, expenses, and profitability trends over time at the account level. <br></br>**Example Analytics Questions:**<ul><li>What are monthly revenue and expense trends by account class (revenue vs expense)?</li><li>Which expense accounts are growing fastest month-over-month?</li><li>What is the net profit or loss for each month across all revenue and expense accounts?</li></ul>|
53+
| [xero__balance_sheet_report](https://github.com/fivetran/dbt_xero/blob/main/models/xero__balance_sheet_report.sql) | Shows the monthly balance sheet position for each account to track assets, liabilities, and equity over time and understand financial health. <br></br>**Example Analytics Questions:**<ul><li>What is the current balance for each asset, liability, and equity account?</li><li>How have account balances changed month-over-month across different account classes?</li><li>What is the total asset value versus total liability value for each reporting period?</li></ul>|
54+
| [xero__invoice_line_items](https://github.com/fivetran/dbt_xero/blob/main/models/xero__invoice_line_items.sql) | Provides detailed invoice line item data enriched with account, contact, and invoice information including amounts, taxes, and payment status to analyze billing and revenue. <br></br>**Example Analytics Questions:**<ul><li>Which customers or contacts generate the highest invoice amounts and line item volumes?</li><li>What are the most common products or services sold based on line item descriptions?</li><li>How do discount rates and tax amounts vary across different invoice line items or customers?</li></ul>|
3455

35-
### Materialized Models
36-
Each Quickstart transformation job run materializes 35 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
37-
<!--section-end-->
56+
¹ Each Quickstart transformation job run materializes these models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
3857

39-
## How do I use the dbt package?
58+
---
4059

41-
### Step 1: Prerequisites
60+
## Prerequisites
4261
To use this dbt package, you must have the following:
4362

4463
- At least one Fivetran Xero connection syncing data into your destination.
4564
- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.
4665

47-
### Step 2: Install the package
66+
## How do I use the dbt package?
67+
You can either add this dbt package in the Fivetran dashboard or import it into your dbt project:
68+
69+
- To add the package in the Fivetran dashboard, follow our [Quickstart guide](https://fivetran.com/docs/transformations/data-models/quickstart-management).
70+
- To add the package to your dbt project, follow the setup instructions in the dbt package's [README file](https://github.com/fivetran/dbt_xero/blob/main/README.md#how-do-i-use-the-dbt-package) to use this package.
71+
72+
<!--section-end-->
73+
74+
### Install the package
4875
Include the following xero package version in your `packages.yml` file:
4976
> TIP: Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages.
5077
```yaml
5178
packages:
5279
- package: fivetran/xero
53-
version: [">=1.1.0", "<1.2.0"] # we recommend using ranges to capture non-breaking changes automatically
80+
version: [">=1.2.0", "<1.3.0"] # we recommend using ranges to capture non-breaking changes automatically
5481
```
5582
> All required sources and staging models are now bundled into this transformation package. Do not include `fivetran/xero_source` in your `packages.yml` since this package has been deprecated.
56-
### Step 3: Define database and schema variables
83+
84+
### Define database and schema variables
5785
By default, this package runs using your destination and the `xero` schema. If this is not where your Xero data is (for example, if your Xero schema is named `xero_fivetran`), add the following configuration to your root `dbt_project.yml` file:
5886

5987
```yml
@@ -62,7 +90,7 @@ vars:
6290
xero_database: your_database_name
6391
```
6492

65-
### (Optional) Step 4: Additional configurations
93+
### (Optional) Additional configurations
6694

6795
#### Change the calendar start date
6896
Our date-based models start at `2019-01-01` by default. To customize the start date, add the following variable to your `dbt_project.yml` file:
@@ -135,11 +163,11 @@ vars:
135163
xero_<default_source_table_name>_identifier: your_table_name
136164
```
137165

138-
### (Optional) Step 5: Orchestrate your models with Fivetran Transformations for dbt Core™
166+
### (Optional) Orchestrate your models with Fivetran Transformations for dbt Core™
139167
<details><summary>Expand for details</summary>
140168
<br>
141169

142-
Fivetran offers the ability for you to orchestrate your dbt project through [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt). Learn how to set up your project for orchestration through Fivetran in our [Transformations for dbt Core setup guides](https://fivetran.com/docs/transformations/dbt#setupguide).
170+
Fivetran offers the ability for you to orchestrate your dbt project through [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt#transformationsfordbtcore). Learn how to set up your project for orchestration through Fivetran in our [Transformations for dbt Core setup guides](https://fivetran.com/docs/transformations/dbt/setup-guide#transformationsfordbtcoresetupguide).
143171

144172
</details>
145173

@@ -155,14 +183,19 @@ packages:
155183
- package: dbt-labs/dbt_utils
156184
version: [">=1.0.0", "<2.0.0"]
157185
```
186+
187+
<!--section="xero_maintenance"-->
158188
## How is this package maintained and can I contribute?
189+
159190
### Package Maintenance
160-
The Fivetran team maintaining this package _only_ maintains the latest version of the package. We highly recommend you stay consistent with the [latest version](https://hub.getdbt.com/fivetran/xero/latest/) of the package and refer to the [CHANGELOG](https://github.com/fivetran/dbt_xero/blob/main/CHANGELOG.md) and release notes for more information on changes across versions.
191+
The Fivetran team maintaining this package only maintains the [latest version](https://hub.getdbt.com/fivetran/xero/latest/) of the package. We highly recommend you stay consistent with the latest version of the package and refer to the [CHANGELOG](https://github.com/fivetran/dbt_xero/blob/main/CHANGELOG.md) and release notes for more information on changes across versions.
161192

162193
### Contributions
163194
A small team of analytics engineers at Fivetran develops these dbt packages. However, the packages are made better by community contributions.
164195

165-
We highly encourage and welcome contributions to this package. Check out [this dbt Discourse article](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package.
196+
We highly encourage and welcome contributions to this package. Learn how to contribute to a package in dbt's [Contributing to an external dbt package article](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657).
197+
198+
<!--section-end-->
166199

167200
## Are there any resources available?
168201
- If you have questions or want to reach out for help, see the [GitHub Issue](https://github.com/fivetran/dbt_xero/issues/new/choose) section to find the right avenue of support for you.

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'xero'
2-
version: '1.1.1'
2+
version: '1.2.0'
33
config-version: 2
44
require-dbt-version: [">=1.3.0", "<3.0.0"]
55

docs/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

integration_tests/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'xero_integration_tests'
2-
version: '1.1.1'
2+
version: '1.2.0'
33
profile: 'integration_tests'
44
config-version: 2
55

0 commit comments

Comments
 (0)