-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathfinance_operations.dashboard.lookml
327 lines (311 loc) · 9.41 KB
/
finance_operations.dashboard.lookml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
- dashboard: finance_operations
title: Finance Operations
layout: grid
rows:
- elements: [add_a_unique_name_1462199027307, add_a_unique_name_1462199030365, add_a_unique_name_1462199034110]
height: 200
- elements: [add_a_unique_name_1462199022945]
height: 400
- elements: [add_a_unique_name_1462199037544, add_a_unique_name_1462199046966, add_a_unique_name_1462199049740, add_a_unique_name_1462199071518, add_a_unique_name_1462199076746]
height: 200
- elements: [add_a_unique_name_1462199080404]
height: 400
- elements: [add_a_unique_name_1462199084068 ,add_a_unique_name_1462199093780]
height: 400
- elements: [add_a_unique_name_1462199096968]
height: 400
- elements: [add_a_unique_name_1462199100492]
height: 400
filters:
- name: charge_date
title: "Visit Date"
type: date_filter
default_value: 90 days ago for 45 days #change default filter value
elements:
- name: add_a_unique_name_1462199022945
title: Charge Failure Reason
type: looker_bar
model: segment_stripe
explore: calendar
dimensions: [charges.failure_code]
measures: [charges.charge_count, charges.total_gross_amount]
filters:
charges.failure_code: -NULL
charges.status: failed
listen:
charge_date: calendar.cal_date_month
sorts: [charges.charge_count desc]
limit: 500
column_limit: 50
stacking: ''
colors: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f',
'#ff7f00', '#cab2d6', '#6a3d9a', '#edbc0e', '#b15928']
show_value_labels: true
label_density: 14
legend_position: right
x_axis_gridlines: false
show_view_names: false
limit_displayed_rows: false
y_axis_combined: false
show_y_axis_labels: false
show_y_axis_ticks: false
y_axis_tick_density: default
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_labels: false
- name: add_a_unique_name_1462199027307
title: Total Charges
type: single_value
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
measures: [charges.charge_count]
sorts: [charges.charge_count desc]
limit: 500
font_size: small
value_format: ''
text_color: black
- name: add_a_unique_name_1462199030365
title: Total Failed Charges Amount
type: single_value
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
measures: [charges.charge_count]
filters:
charges.status: failed
sorts: [charges.charge_count desc]
limit: 500
font_size: small
value_format: ''
text_color: black
- name: add_a_unique_name_1462199034110
title: Total Refund Count
type: single_value
model: segment_stripe
listen:
charge_date: calendar.cal_date_month
explore: calendar
measures: [charges.refund_count]
sorts: [charges.refund_count desc]
limit: 500
font_size: small
value_format: ''
text_color: black
- name: add_a_unique_name_1462199037544
title: Total Gross Charges
type: single_value
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
measures: [charges.total_gross_amount]
sorts: [charges.total_gross_amount desc]
limit: 500
font_size: small
value_format: ''
text_color: black
- name: add_a_unique_name_1462199046966
title: Total Failed Charges
type: single_value
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
measures: [charges.total_failed_charges]
sorts: [charges.total_failed_charges desc]
limit: 500
font_size: small
value_format: ''
text_color: black
- name: add_a_unique_name_1462199049740
title: Total Net Charges
type: single_value
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
measures: [charges.total_net_amount]
sorts: [charges.total_net_amount desc]
limit: 500
font_size: small
value_format: ''
text_color: black
- name: add_a_unique_name_1462199071518
title: Delinquent Customer Count
type: single_value
listen:
charge_date: calendar.cal_date_month
model: segment_stripe
explore: calendar
measures: [customers.count]
filters:
customers.delinquent: 'Yes'
sorts: [invoices.attempt_count, plans.name, customers.count desc]
limit: 500
column_limit: 50
font_size: small
text_color: '#49719a'
- name: add_a_unique_name_1462199076746
title: Average Days to Payment Received
type: single_value
model: segment_stripe
listen:
charge_date: calendar.cal_date_month
explore: calendar
measures: [charges.avg_days_until_received]
sorts: [charges.outstanding_charge_time desc, charges.avg_days_until_received desc]
limit: 500
font_size: small
text_color: black
- name: add_a_unique_name_1462199080404
title: Invoice Attempt Count
type: looker_column
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
dimensions: [invoices.attempt_count]
measures: [invoices.count]
filters:
invoices.attempt_count: NOT NULL
sorts: [invoices.attempt_count]
limit: 500
column_limit: 50
stacking: ''
colors: ['#62bad4', '#a9c574', '#929292', '#9fdee0', '#1f3e5a', '#90c8ae', '#92818d',
'#c5c6a6', '#82c2ca', '#cee0a0', '#928fb4', '#9fc190']
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: ordinal
y_axis_scale_mode: log
show_null_labels: false
- name: add_a_unique_name_1462199084068
title: Customers with Unpaid Invoices
type: table
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
dimensions: [customers.email]
measures: [invoices.total_amount_due]
filters:
customers.email: -NULL
invoices.paid: 'No'
invoices.total_amount_due: '>0'
sorts: [invoices.total_amount_due desc]
limit: 500
column_limit: 50
show_view_names: false
show_row_numbers: false
truncate_column_names: false
table_theme: editable
limit_displayed_rows: false
- name: add_a_unique_name_1462199093780
title: Top Customers by Total Spend
type: table
model: segment_stripe
explore: calendar
dimensions: [customers.email]
measures: [charges.total_net_amount]
filters:
customers.email: -NULL
listen:
charge_date: calendar.cal_date_month
sorts: [charges.total_net_amount desc]
limit: 500
column_limit: 50
show_view_names: false
show_row_numbers: true
truncate_column_names: false
table_theme: editable
limit_displayed_rows: false
- name: add_a_unique_name_1462199096968
title: Payment Received Time by Charge Date
type: looker_line
model: segment_stripe
explore: calendar
listen:
charge_date: calendar.cal_date_month
dimensions: [calendar.cal_date_date]
measures: [charges.avg_days_until_received]
sorts: [calendar.cal_date_date desc]
limit: 500
column_limit: 50
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_points: false
point_style: none
interpolation: monotone
- name: add_a_unique_name_1462199100492
title: Gross Charges vs Failures/Refunds Over Time
type: looker_column
model: segment_stripe
explore: calendar
dimensions: [calendar.cal_date_date]
measures: [charges.total_gross_amount, charges.total_net_amount, charges.total_failed_charges,
charges.total_refunds]
dynamic_fields:
- table_calculation: failed_charges
label: Failed Charges
expression: -1 * ${charges.total_failed_charges}
value_format_name: usd
- table_calculation: refunds
label: Refunds
expression: -1 * ${charges.total_refunds}
value_format_name: usd
listen:
charge_date: calendar.cal_date_month
hidden_fields: [charges.total_net_amount, charges.total_failed_charges, charges.total_refunds]
sorts: [calendar.cal_date_date]
limit: 500
stacking: ''
colors: ['#94cf78', '#bf7d75', '#0c0d0c', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f',
'#ff7f00', '#cab2d6', '#6a3d9a', '#edbc0e', '#b15928']
show_value_labels: false
label_density: 2
font_size: small
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
limit_displayed_rows: false
hidden_series: [charges.total_refunds]
y_axis_combined: true
show_y_axis_labels: false
show_y_axis_ticks: true
y_axis_tick_density: default
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: time
y_axis_scale_mode: linear
show_null_labels: false