data-dwh-dbt-project/models
Oriol Roqué Paniagua f230eb3af5 Merged PR 3247: Enriches monthly_growth_by_deal model for top losers reporting
# Description

Changes:
* Explicit selection of fields in the last part of the query, rather than select *.
* Adding a few more Hubspot attributes, namely: AM, Hubspot Stage, Live Date and Cancellation Date. The main idea is to enrich the reporting with these.
* Adding the listings over 12 months. Here it's a bit more tricky than for Revenue or Bookings, since to me the main indicator is the amount of listings that are being booked in a month, over a period of 12 months (rather than unique count of listings that have been booked in the past 12 months). However, doing a sum of the listings booked in month will be very tricky for AMs and other users. I opted for averaging, and can be considered as, in average, a certain account has X amount of listings with bookings created, and this average considers the past 12 months. So I'd say it's a good estimate of the "real" size of a client in terms of potential for Superhog.

# 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.
- [NA] I have checked for DRY opportunities with other models and docs.
- [NA] 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: #22883
2024-10-18 13:17:52 +00:00
..
intermediate Merged PR 3247: Enriches monthly_growth_by_deal model for top losers reporting 2024-10-18 13:17:52 +00:00
reporting Merged PR 3247: Enriches monthly_growth_by_deal model for top losers reporting 2024-10-18 13:17:52 +00:00
staging Merged PR 3207: Cast as dates and timestamps for hubspot deals in staging 2024-10-16 14:57:36 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00