Cash Balances by RC

Aggregates converted asset values into total cash balances per reporting currency and date.

Purpose

Provide a reporting-level aggregation of cash balances, expressed in standardized reporting currencies.

This model collapses all converted asset values into a single total per reporting currency and time period, making it suitable for:

  • Net worth reporting
  • Cash position tracking
  • Executive dashboards and summaries

It represents the final consumption layer for asset-based cash balances.

Business Logic

  • Start from the Assets Converted transformations
  • Group converted asset values by:
    • Date
    • ISO week
    • Reporting currency
  • Aggregate values using SUM
  • Round final balances to two decimal places
  • Produce one row per reporting currency per date

Output Contract

Definitions

ColumnDescription
dateDate of the cash balance snapshot (YYYY-MM-DD)
weeknumISO year-week in YYYYWW format, derived from date
reporting_currencyISO currency code used for reporting
converted_cash_balancesTotal cash balance expressed in the reporting currency

Sample & Implementation

Total cash balances expressed in reporting currencies.
dateweeknumreporting_currencyconverted_cash_balances
2025-01-06202502USD8253169.52
2025-01-06202502GBP6636884.36
2025-01-06202502EUR8005620.6
2025-01-06202502CHF7509930.74
2025-01-13202503USD8244181.64
2025-01-13202503CHF7555324.88
2025-01-13202503EUR8049188.67
2025-01-13202503GBP6762370.18
2025-01-20202504GBP6794994.78
2025-01-20202504CHF7567404.78
{{config(materialised='view')}}

with assets_converted as (
    select * from {{ref ('assets_converted') }}
)

select
    date,
    weeknum,
    reporting_currency,
    ROUND(
        sum(converted_value)
        ,2) as converted_cash_balances
from assets_converted
group by date, weeknum, reporting_currency
order by weeknum

Dependencies

On this page

Star us on GitHub

If you enjoy this content and find it useful, give us a star on GitHub to show your support and stay updated with our latest improvements.