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 5, 2021
1 parent ec309b4 commit fea474a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,22 @@ local predefined = import 'predefined.jsonnet';
},
total_revenue: {
aggregation: 'sum',
label: 'LTV',
label: 'Total Revenue',
category: 'Revenue',
sql: '{{dimension.ltv_increase}}',
reportOptions: { formatNumbers: '$0,0' },
reportOptions: { formatNumbers: '$0,0000' },
},
ltv_revenue: {
label: 'Revenue',
category: 'Revenue',
label: 'LTV',
category: 'LTV',
sql: 'IEEE_DIVIDE({{measure.total_revenue}}, {{measure.all_users}})',
reportOptions: { formatNumbers: '$0,0' },
reportOptions: { formatNumbers: '$0,0000' },
},
ltv_revenue_d7: {
label: 'D7 LTV',
category: 'Revenue',
sql: '{{measure.ltv_revenue}}',
reportOptions: { formatNumbers: '$0,0' },
reportOptions: { formatNumbers: '$0,0000' },
filters: [
{ dimension: 'days_since_signup', operator: 'lessThan', value: 8, valueType: 'integer' },
],
Expand Down

0 comments on commit fea474a

Please sign in to comment.