-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathitem_affinity_analysis.dashboard.lookml
More file actions
452 lines (444 loc) · 17.7 KB
/
item_affinity_analysis.dashboard.lookml
File metadata and controls
452 lines (444 loc) · 17.7 KB
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
- dashboard: item_affinity_analysis
title: Item Affinity Analysis
layout: newspaper
elements:
- title: Product Segmentation
name: Product Segmentation
model: retail_model
explore: order_purchase_affinity
type: looker_scatter
fields: [order_purchase_affinity.product_a_average_rest_of_basket_margin, order_purchase_affinity.product_a_order_frequency,
order_purchase_affinity.product_a_order_count, order_purchase_affinity.product_a]
filters: {}
sorts: [order_purchase_affinity.product_a_order_count desc]
limit: 500
query_timezone: America/Los_Angeles
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
point_style: circle
series_types: {}
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
reference_lines: []
trend_lines: []
show_null_points: true
interpolation: step
hidden_fields: [order_purchase_affinity.product_a, order_purchase_affinity.product_a_order_frequency]
listen:
Product Level: order_items_base.product_level
Analysis Timeframe: order_purchase_affinity.affinity_timeframe
Minimum Purchase Frequency: order_purchase_affinity.product_a_order_frequency
row: 2
col: 12
width: 12
height: 8
- title: What are my most popular and margin-generating items?
name: What are my most popular and margin-generating items?
explore: order_purchase_affinity
type: table
fields: [order_purchase_affinity.product_a, order_purchase_affinity.product_a_image, order_purchase_affinity.product_a_average_rest_of_basket_margin,
order_purchase_affinity.product_a_order_frequency, order_purchase_affinity.product_a_order_count,
order_purchase_affinity.product_a_percent_purchased_by_loyalty_customer]
filters: {}
sorts: [order_purchase_affinity.product_a_order_count desc]
limit: 500
query_timezone: America/Los_Angeles
show_view_names: false
show_row_numbers: true
truncate_column_names: false
subtotals_at_bottom: false
hide_totals: false
hide_row_totals: false
table_theme: editable
limit_displayed_rows: false
enable_conditional_formatting: true
conditional_formatting: [{type: along a scale..., value: !!null '', background_color: !!null '',
font_color: !!null '', color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85,
custom: {id: 0beedf53-60ed-7e3d-6b1e-9800cfe27788, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#83ff80", offset: 50},
{color: "#06bf23", offset: 100}]}, options: {steps: 5}}, bold: false,
italic: false, strikethrough: false, fields: [order_purchase_affinity.product_a_average_rest_of_basket_margin]}]
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
point_style: circle
series_types: {}
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
reference_lines: []
trend_lines: []
show_null_points: true
interpolation: step
hidden_fields:
listen:
Product Level: order_items_base.product_level
Analysis Timeframe: order_purchase_affinity.affinity_timeframe
Minimum Purchase Frequency: order_purchase_affinity.product_a_order_frequency
row: 2
col: 0
width: 12
height: 8
- title: Proposed Attachments
name: Proposed Attachments
explore: order_purchase_affinity
type: looker_scatter
fields: [order_purchase_affinity.product_b, order_purchase_affinity.product_b_average_rest_of_basket_margin,
order_purchase_affinity.lift, order_purchase_affinity.product_b_order_frequency]
filters: {}
sorts: [order_purchase_affinity.lift desc]
limit: 50
query_timezone: America/Los_Angeles
show_view_names: false
show_row_numbers: true
truncate_column_names: false
subtotals_at_bottom: false
hide_totals: false
hide_row_totals: false
table_theme: editable
limit_displayed_rows: false
enable_conditional_formatting: true
conditional_formatting: [{type: along a scale..., value: !!null '', background_color: !!null '',
font_color: !!null '', color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85,
custom: {id: 0beedf53-60ed-7e3d-6b1e-9800cfe27788, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#83ff80", offset: 50},
{color: "#06bf23", offset: 100}]}, options: {steps: 5}}, bold: false,
italic: false, strikethrough: false, fields: []}]
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
point_style: circle
series_types: {}
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
reference_lines: []
trend_lines: []
show_null_points: true
interpolation: step
hidden_fields: [order_purchase_affinity.product_b]
listen:
Product Level: order_items_base.product_level
Analysis Timeframe: order_purchase_affinity.affinity_timeframe
Focus Product: order_purchase_affinity.product_a
Minimum Purchase Frequency: order_purchase_affinity.product_b_order_frequency
row: 15
col: 10
width: 14
height: 12
- title: What items go well with the focus product and drive the biggest combined
check?
name: What items go well with the focus product and drive the biggest combined
check?
explore: order_purchase_affinity
type: table
fields: [order_purchase_affinity.product_b,order_purchase_affinity.product_b_image, order_purchase_affinity.product_b_average_rest_of_basket_margin,
order_purchase_affinity.lift, order_purchase_affinity.product_b_order_frequency]
filters: {}
sorts: [order_purchase_affinity.lift desc]
limit: 50
query_timezone: America/Los_Angeles
show_view_names: false
show_row_numbers: true
truncate_column_names: false
subtotals_at_bottom: false
hide_totals: false
hide_row_totals: false
table_theme: editable
limit_displayed_rows: false
enable_conditional_formatting: true
conditional_formatting: [{type: along a scale..., value: !!null '', background_color: !!null '',
font_color: !!null '', color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85,
custom: {id: 0beedf53-60ed-7e3d-6b1e-9800cfe27788, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#83ff80", offset: 50},
{color: "#06bf23", offset: 100}]}, options: {steps: 5}}, bold: false,
italic: false, strikethrough: false, fields: [order_purchase_affinity.lift]},
{type: along a scale..., value: !!null '', background_color: !!null '', font_color: !!null '',
color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85, custom: {
id: 42c42989-a24b-cae4-b890-84b06c7d20ed, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#83ff80", offset: 50},
{color: "#06bf23", offset: 100}]}, options: {steps: 5}}, bold: false,
italic: false, strikethrough: false, fields: [order_purchase_affinity.product_b_average_rest_of_basket_margin]}]
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
point_style: circle
series_types: {}
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
reference_lines: []
trend_lines: []
show_null_points: true
interpolation: step
hidden_fields:
listen:
Product Level: order_items_base.product_level
Analysis Timeframe: order_purchase_affinity.affinity_timeframe
Focus Product: order_purchase_affinity.product_a
Minimum Purchase Frequency: order_purchase_affinity.product_b_order_frequency
row: 17
col: 0
width: 10
height: 10
- title: Focus Product
name: Focus Product
explore: order_purchase_affinity
type: single_value
fields: [order_purchase_affinity.product_a]
filters:
order_purchase_affinity.product_b_order_frequency: ">=0.005"
sorts: [order_purchase_affinity.product_a]
limit: 50
dynamic_fields: [{table_calculation: focus_product, label: Focus Product, expression: 'if(count(${order_purchase_affinity.product_a})=1,${order_purchase_affinity.product_a},null)',
value_format: !!null '', value_format_name: !!null '', _kind_hint: dimension,
_type_hint: string}]
query_timezone: America/Los_Angeles
show_view_names: false
show_row_numbers: true
truncate_column_names: false
subtotals_at_bottom: false
hide_totals: false
hide_row_totals: false
table_theme: editable
limit_displayed_rows: false
enable_conditional_formatting: true
conditional_formatting: [{type: along a scale..., value: !!null '', background_color: !!null '',
font_color: !!null '', color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85,
custom: {id: 0beedf53-60ed-7e3d-6b1e-9800cfe27788, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#83ff80", offset: 50},
{color: "#06bf23", offset: 100}]}, options: {steps: 5}}, bold: false,
italic: false, strikethrough: false, fields: []}, {type: along a scale...,
value: !!null '', background_color: !!null '', font_color: !!null '', color_application: {
collection_id: d588263f-f0cb-4f93-b431-700d57025b85, custom: {id: 42c42989-a24b-cae4-b890-84b06c7d20ed,
label: Custom, type: continuous, stops: [{color: "#ffffff", offset: 0},
{color: "#83ff80", offset: 50}, {color: "#06bf23", offset: 100}]}, options: {
steps: 5}}, bold: false, italic: false, strikethrough: false, fields: []}]
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
point_style: circle
series_types: {}
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
reference_lines: []
trend_lines: []
show_null_points: true
interpolation: step
hidden_fields: [order_purchase_affinity.product_a]
listen:
Product Level: order_items_base.product_level
Analysis Timeframe: order_purchase_affinity.affinity_timeframe
Focus Product: order_purchase_affinity.product_a
Minimum Purchase Frequency: order_purchase_affinity.product_a_order_frequency
row: 15
col: 0
width: 10
height: 2
- name: Product Segmentation Tile
type: text
title_text: Product Segmentation
row: 0
col: 0
width: 24
height: 2
- name: ''
type: text
title_text: ''
subtitle_text: What are the best products to bundle with the focus product?
row: 10
col: 0
width: 24
height: 2
- name: 'Text tile 1'
type: text
subtitle_text: Finally, what are my least popular items in that timeframe?
body_text: ''
row: 27
col: 0
width: 24
height: 2
- title: Product Rationalisation
name: Product Rationalisation
explore: order_purchase_affinity
type: table
fields: [order_purchase_affinity.product_a, order_purchase_affinity.product_a_image, order_purchase_affinity.product_a_order_frequency,
order_purchase_affinity.product_a_average_basket_margin, order_purchase_affinity.product_a_percent_purchased_by_loyalty_customer,
order_purchase_affinity.product_a_percent_customer_exclusivity]
filters: {}
sorts: [order_purchase_affinity.product_a_order_frequency]
limit: 50
query_timezone: America/Los_Angeles
show_view_names: false
show_row_numbers: true
truncate_column_names: false
subtotals_at_bottom: false
hide_totals: false
hide_row_totals: false
table_theme: unstyled
limit_displayed_rows: false
enable_conditional_formatting: true
conditional_formatting: [{type: along a scale..., value: !!null '', background_color: !!null '',
font_color: !!null '', color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85,
custom: {id: e957ced6-3159-da29-15b3-b19b2036f209, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#bf402c", offset: 100}]},
options: {steps: 5, reverse: true}}, bold: false, italic: false, strikethrough: false,
fields: [order_purchase_affinity.product_a_order_frequency]}, {type: along
a scale..., value: !!null '', background_color: !!null '', font_color: !!null '',
color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85, custom: {
id: 62da82c5-db03-598f-d9d2-24c05cea68bc, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#bf402c", offset: 100}]},
options: {steps: 5, reverse: true}}, bold: false, italic: false, strikethrough: false,
fields: [order_purchase_affinity.product_a_average_basket_margin]}, {type: along
a scale..., value: !!null '', background_color: !!null '', font_color: !!null '',
color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85, custom: {
id: 33756f45-fbc4-92e6-96c6-32bc11615cf8, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#bf402c", offset: 100}]},
options: {steps: 5, reverse: true}}, bold: false, italic: false, strikethrough: false,
fields: [order_purchase_affinity.product_a_percent_purchased_by_loyalty_customer]},
{type: along a scale..., value: !!null '', background_color: !!null '', font_color: !!null '',
color_application: {collection_id: d588263f-f0cb-4f93-b431-700d57025b85, custom: {
id: 721b90d4-be82-368f-b843-70e922627449, label: Custom, type: continuous,
stops: [{color: "#ffffff", offset: 0}, {color: "#bf402c", offset: 100}]},
options: {steps: 5, reverse: true}}, bold: false, italic: false, strikethrough: false,
fields: [order_purchase_affinity.product_a_percent_customer_exclusivity]}]
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
point_style: circle
series_types: {}
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
reference_lines: []
trend_lines: []
show_null_points: true
interpolation: step
hidden_fields:
listen:
Product Level: order_items_base.product_level
Analysis Timeframe: order_purchase_affinity.affinity_timeframe
Minimum Purchase Frequency: order_purchase_affinity.product_a_order_frequency
row: 29
col: 0
width: 24
height: 11
filters:
- name: Product Level
title: Product Level
type: field_filter
default_value: prod^_name
allow_multiple_values: true
required: false
model: retail_model
explore: order_purchase_affinity
listens_to_filters: []
field: order_items_base.product_level
- name: Analysis Timeframe
title: Analysis Timeframe
type: date_filter
default_value: 90 days
allow_multiple_values: true
required: false
- name: Focus Product
title: Focus Product
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
explore: order_purchase_affinity
listens_to_filters: []
field: order_purchase_affinity.product_a
- name: Minimum Purchase Frequency
title: Minimum Purchase Frequency
type: number_filter
default_value: ">=0.005"
allow_multiple_values: true
required: false