LookML view · dating-platform
The subscriptions view: renewal dates, auto-renew and two definitions of active
At a glance
Does Reads one row per subscription from public.subscriptions: status , auto_renew , trial_days , renewal period and unit, payment profile and source, with a count measure. Trust: Source-defined
Why The membership record behind revenue and churn analysis: who is subscribed, on what terms, and when they renew. Trust: InferredGrain One row per subscription. id is the primary key and user_id is hidden. Trust: Source-defined
Source dating_platform/memberships.view.lookml 58 lines
Source: memberships.view.lookml L1-10
Shape Trust: Source-defined
Every field as declared, with the dashboard tiles that read it. Computed from the source; nothing here is edited.
Table: public.subscriptions
Relationships Trust: Source-defined
Relationships of subscriptions
This Block No relationship declared
Text version subscriptions is joined into transactions: as subscriptions, fk transactions.subscription_id (no relationship declared)
Worth noticing
next_renewal is a date-only group Trust: Source-defined
next_renewal is a dimension_group with type: date and no timeframes, unlike the type: time groups beside it.
Source: memberships.view.lookml L19-21
Joined for keys only Trust: Source-defined
The enterprise transactions explore joins subscriptions on transactions.subscription_id with fields: [].
Source: enterprise.model.lookml L14-16
What can change the answer 3
!
Caution: currently_active ignores statusTrust: Source-defined
currently_active is true when next_renewal_on is after today. It does not read status , so a cancelled subscription with time left counts as active.
What goes wrong: Active subscriber counts differ depending on whether a report uses status or currently_active.
Read the guide: Filters that change metric meaning
Source: memberships.view.lookml L36-38
i
Note: Downgrades in churn depend on these columnsTrust: Source-defined
churn counts a downgrade from auto_renew = false and a past next_renewal_on, reading the same table outside this view.
Source: memberships.view.lookml L8-10
i
Note: The drill set reaches a missing viewTrust: Source-defined
The detail set lists users.id, and no users view is in the repo.
Read the guide: Missing tables and stale references
Source: memberships.view.lookml L54-58
Related
Guides built on this file
Guide
Modeling upgrades, downgrades and renewals as daily movements
How a real subscription product stacks leads, upgrades, downgrades and renewals per day, how it defines active, and the fanout hidden in its downgrades.
Retention Revenue
Guide
Filters that quietly change what a metric means
Why two reports disagree on one metric: hidden default filters, tile filters and unwired dashboard filters, with a checklist and real examples.
Best practices Acquisition Retention
Guide
Catching missing tables and stale references before a dashboard breaks
Models can name tables, fields and explores that do not exist, and nothing fails until a chart runs. Real examples, and how to check yours before release.
Best practices
Related source files
Source file
churn
Unions four counts per site, source and calendar day: new users as leads, downgrades, upgrades and renewals...
view 3 warnings
Source file
enterprise
Declares six explores on project_connection: churn, transactions, messages, propositions, date_ideas and te...
model 4 warnings
Source file
transactions
Builds web orders from transaction events: order id, affiliation, total, tax, city, state, country and the ...
view 3 warnings
Source file
user_score
Joined with it in the transactions explore
view 3 warnings
Source model