Merged PR 4223: Cleaned first time booked for deals

# Description

Cleaned first time booked for deals.
Removed fields from models that were previously using it and from schema

# 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.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

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

Cleaned first time booked for deals

Related work items: #27121
This commit is contained in:
Joaquin Ossa 2025-01-30 09:23:31 +00:00
commit 491cf2743e
3 changed files with 0 additions and 19 deletions

View file

@ -16,7 +16,6 @@
-- Metrics --
sum(new_deals) as new_deals,
sum(never_booked_deals) as never_booked_deals,
sum(first_time_booked_deals) as first_time_booked_deals,
sum(active_deals) as active_deals,
sum(churning_deals) as churning_deals,
sum(inactive_deals) as inactive_deals,

View file

@ -30,13 +30,6 @@ select
when ldl.deal_lifecycle_state = '02-Never Booked' then ldl.id_deal else null
end
) as never_booked_deals,
count(
distinct case
when ldl.deal_lifecycle_state = '03-First Time Booked'
then ldl.id_deal
else null
end
) as first_time_booked_deals,
count(
distinct case
when ldl.deal_lifecycle_state = '04-Active' then ldl.id_deal else null

View file

@ -5078,11 +5078,6 @@ models:
description: |
Count of never booked deals in a given date and per specified dimension.
- name: first_time_booked_deals
data_type: bigint
description: |
Count of first-time booked deals in a given date and per specified dimension.
- name: active_deals
data_type: bigint
description: |
@ -5157,7 +5152,6 @@ models:
metric_column_names:
- new_deals
- never_booked_deals
- first_time_booked_deals
- active_deals
- churning_deals
- inactive_deals
@ -5212,11 +5206,6 @@ models:
description: |
Count of never booked deals for a given date, dimension and value.
- name: first_time_booked_deals
data_type: bigint
description: |
Count of first-time booked deals for a given date, dimension and value.
- name: active_deals
data_type: bigint
description: |