model and schema
This commit is contained in:
parent
6446dfdb9e
commit
69ad42af63
2 changed files with 109 additions and 0 deletions
|
|
@ -1087,3 +1087,22 @@ models:
|
|||
The transaction currency is defined at the Bank Transaction level, and
|
||||
the values you see in this field should always be the same as the
|
||||
currency of the Bank Transaction this line item belongs to.
|
||||
- name: xero__bank_transaction_denom_mart.sql
|
||||
description: |
|
||||
This model is a denormalized mart, which only exists for presentation
|
||||
purposes in a PBI report.
|
||||
|
||||
The data is the same that lives in `xero__bank_transaction_line_items`,
|
||||
`xero__bank_transactions` and `xero__contacts`.
|
||||
|
||||
The granularity is at line item level, so be careful when doing
|
||||
aggregations. Most aggregations on data on the transaction or contact
|
||||
level will be wrong due to duplicates.
|
||||
|
||||
columns:
|
||||
- name: id_line_item
|
||||
data_type: text
|
||||
description: Xero's unique identifier for the line item.
|
||||
tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue