-
Notifications
You must be signed in to change notification settings - Fork 5
/
model.model.lkml
executable file
·89 lines (76 loc) · 2.31 KB
/
model.model.lkml
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
connection: "qubit-livetap"
include: "q_*.view"
persist_for: "24 hours"
case_sensitive: no
explore: q_view {
group_label: "Qubit"
extension: required
fields: [ALL_FIELDS*]
view_name: q_view_v01
from: q_view_v01
label: "Qubit Analytics"
view_label: "Views"
persist_for: "24 hours"
join: q_session_v01 {
view_label: "Sessions"
relationship: many_to_one
sql_on: ${q_session_v01.session_id} = ${q_view_v01.session_id} ;;
}
join: q_entrance_v01 {
view_label: "Entrances"
relationship: many_to_one
sql_on: ${q_entrance_v01.entrance_id} = ${q_view_v01.entrance_id} ;;
}
join: q_transaction_v01 {
view_label: "Transactions"
foreign_key:q_view_v01.view_id
relationship: one_to_one
}
join: q_product_v01 {
view_label: "Product Interaction and Sales"
relationship: one_to_many
sql_on: ${q_product_v01.view_id} = ${q_view_v01.view_id} ;;
}
join: q_segment_v01 {
view_label: "Segment Membership"
foreign_key:q_view_v01.view_id
relationship: one_to_many
}
join: q_experience_v01 {
view_label: "Experiences"
foreign_key:q_view_v01.view_id
relationship: one_to_many
}
join: q_experience_meta_data_v01 {
relationship: many_to_one
sql_on: q_experience_v01.experienceId = q_experience_meta_data_v01.experienceId ;;
}
join: q_goal_achieved_v01 {
view_label: "Goal Achieved"
foreign_key:q_view_v01.view_id
relationship: one_to_many
}
join: q_goal_achieved_meta_data_v01 {
relationship: many_to_one
sql_on: q_goal_achieved_v01.experienceId = q_goal_achieved_meta_data_v01.experienceId ;;
}
join: q_attribution_v01 {
view_label: "Attribution"
relationship: many_to_one
sql_on: (q_attribution_v01.context_id = q_view_v01.context_id
AND q_attribution_v01.context_sessionNumber = q_view_v01.context_sessionNumber
AND q_attribution_v01.context_entranceNumber = q_view_v01.context_entranceNumber
AND q_attribution_v01.context_conversionNumber = q_view_v01.context_conversionNumber
) ;;
}
join: q_visitor_pulse_v01 {
view_label: "Visitor Pulse"
foreign_key:q_view_v01.view_id
relationship: one_to_many
}
join: q_user_action_v01 {
view_label: "User Action"
foreign_key: q_view_v01.view_id
relationship: one_to_many
}
}