2025-05-19 15:41:48 +00:00
|
|
|
with
|
|
|
|
|
int_new_dash_deal_onboarding as (
|
|
|
|
|
select * from {{ ref("int_new_dash_deal_onboarding") }}
|
|
|
|
|
)
|
|
|
|
|
select
|
|
|
|
|
id_deal,
|
|
|
|
|
deal_name,
|
|
|
|
|
id_deal || '-' || coalesce(deal_name, '') as deal,
|
|
|
|
|
onboarding_owner,
|
|
|
|
|
account_manager,
|
|
|
|
|
platform_company_name,
|
|
|
|
|
count_platform_accounts,
|
|
|
|
|
count_listings,
|
|
|
|
|
count_active_listings,
|
|
|
|
|
count_listings_with_upgraded_programs,
|
|
|
|
|
count_active_listings_with_active_upgraded_programs,
|
|
|
|
|
count_bookings,
|
|
|
|
|
count_bookings_with_paid_service,
|
|
|
|
|
count_programs_at_deal_level,
|
|
|
|
|
count_upgraded_programs_at_deal_level,
|
|
|
|
|
count_upgraded_programs_at_listing_level,
|
|
|
|
|
count_active_upgraded_programs_at_active_listing_level,
|
|
|
|
|
contract_signed_date_utc,
|
2025-05-20 05:53:30 +00:00
|
|
|
date_trunc('month', contract_signed_date_utc)::date as contract_signed_month,
|
2025-05-19 15:41:48 +00:00
|
|
|
live_date_utc,
|
|
|
|
|
cancellation_date_utc,
|
|
|
|
|
backend_account_creation_utc,
|
|
|
|
|
first_listing_created_at_utc,
|
|
|
|
|
first_booking_created_at_utc,
|
|
|
|
|
first_program_created_at_utc,
|
|
|
|
|
first_upgraded_program_created_at_utc,
|
|
|
|
|
first_upgraded_program_applied_to_listing_at_utc,
|
|
|
|
|
first_booking_with_paid_services_created_at_utc,
|
|
|
|
|
first_invoice_at_utc,
|
|
|
|
|
expressed_service_interest,
|
|
|
|
|
services_in_programs_at_deal_level,
|
|
|
|
|
services_in_programs_applied_to_listings,
|
|
|
|
|
active_services_in_programs_applied_to_listings,
|
|
|
|
|
has_churned,
|
|
|
|
|
has_listings,
|
|
|
|
|
has_active_listings,
|
|
|
|
|
has_bookings,
|
|
|
|
|
has_been_invoiced,
|
|
|
|
|
are_all_bookings_free,
|
|
|
|
|
is_account_no_longer_generating_paid_bookings,
|
|
|
|
|
has_account_changed_services_applied_in_listings,
|
|
|
|
|
are_active_services_different_from_expressed_interest
|
|
|
|
|
from int_new_dash_deal_onboarding
|