Skip to content

Commit

Permalink
Update common.libsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
emre committed Mar 31, 2021
1 parent 1b36ae0 commit 364ec6d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@ local predefined = import 'predefined.jsonnet';
{ dimension: 'is_retained', operator: 'is', value: false, valueType: 'boolean' },
],
},
ltv_revenue_total: {
aggregation: 'max',
label: 'Revenue',
sql: '{{dimension.ltv_revenue}}',
},
ltv_revenue_d1: {
aggregation: 'max',
label: 'D1 LTV',
sql: '{{dimension.ltv_revenue}}',
filters: [{ dimension: 'user_first_touch', operator: 'between', value: 'P1D' }],
},
ltv_revenue_d7: {
aggregation: 'max',
label: 'D7 LTV',
sql: '{{dimension.ltv_revenue}}',
filters: [{ dimension: 'user_first_touch', operator: 'between', value: 'P7D' }],
},
whales_playing: {
aggregation: 'countUnique',
sql: '{{dimension.firebase_user_id}}',
Expand Down

0 comments on commit 364ec6d

Please sign in to comment.