data-dwh-dbt-project/models/intermediate
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
..
athena docs for athena int 2024-10-08 14:54:11 +02:00
core Merged PR 3239: Decommission Verification Payments V1 2024-10-18 09:59:29 +00:00
cross Merged PR 3247: Enriches monthly_growth_by_deal model for top losers reporting 2024-10-18 13:17:52 +00:00
edeposit move docs for int_edeposit__guesty_verifications 2024-10-08 14:45:50 +02:00
hubspot Merged PR 3194: First version of Hubspot deals in intermediate 2024-10-16 12:15:14 +00:00
xero fix schemas in intermediate 2024-09-12 15:38:50 +02:00