Merged PR 3967: Adds an "All History" time window to Account Margin

# Description

Quick improvement to be able to report the same setup of metrics by considering all account history up to a certain date.

It adds a new computation flow for this All History window. Note that I needed to update the macro to override this case by using unbounded preceding.

I also took the opportunity to update the exposures of the new report.

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #26085
This commit is contained in:
Oriol Roqué Paniagua 2025-01-07 15:22:30 +00:00
parent f5e417c7db
commit 0ec1484846
5 changed files with 136 additions and 2 deletions

View file

@ -1438,6 +1438,7 @@ models:
- not_null
- accepted_values:
values:
- All History
- Previous 12 months
- Previous 6 months
- Previous 3 months