Skip to content

Commit

Permalink
Update common.libsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
emre committed Apr 3, 2021
1 parent 12ad96c commit ba08962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ local predefined = import 'predefined.jsonnet';
sql: '{{measure.ltv_revenue_total}}/{{measure.all_users}}',
reportOptions: { formatNumbers: '$0,0' },
filters: [
{ dimension: 'user_first_touch', operator: 'between', value: 'P7D', valueType: 'timestamp' },
{ dimension: 'days_since_signup', operator: 'equals', value: 7, valueType: 'integer' },
],
},
whales_playing: {
Expand All @@ -103,6 +103,10 @@ local predefined = import 'predefined.jsonnet';
sql: 'TIMESTAMP_MICROS({{TABLE}}.`event_timestamp`)',
type: 'timestamp',
},
days_since_signup: {
sql: 'TIMESTAMP_DIFF({{dimension.user_first_touch}}, {{dimension.event_timestamp}})',
type: 'timestamp',
},
firebase_user_id: {
label: 'User Id',
description: 'either user_id or user_pseudo_id',
Expand Down

0 comments on commit ba08962

Please sign in to comment.