-
Notifications
You must be signed in to change notification settings - Fork 42
/
pages.model.lkml
57 lines (49 loc) · 1.44 KB
/
pages.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
connection: "segment_sources"
# include all views in this project
# - include: "*.dashboard.lookml" # include all dashboards in this project
include: "*.view"
# - explore: pages
explore: event_facts {
view_label: "Events"
label: "Events"
join: pages {
view_label: "Events"
type: left_outer
sql_on: event_facts.uuid = pages.uuid
and event_facts.received_at = pages.received_at
and event_facts.anonymous_id = pages.anonymous_id
;;
relationship: one_to_one
}
join: tracks {
view_label: "Events"
type: left_outer
sql_on: event_facts.event_id = concat(tracks.event_id, '-t')
and event_facts.received_at = tracks.received_at
and event_facts.anonymous_id = tracks.anonymous_id
;;
relationship: one_to_one
fields: []
}
join: page_facts {
view_label: "Events"
type: left_outer
sql_on: event_facts.event_id = page_facts.event_id and
event_facts.received_at = page_facts.received_at and
event_facts.looker_visitor_id = page_facts.looker_visitor_id
;;
relationship: one_to_one
}
join: sessions_pg_trk {
view_label: "Sessions"
type: left_outer
sql_on: ${event_facts.session_id} = ${sessions_pg_trk.session_id} ;;
relationship: many_to_one
}
join: session_pg_trk_facts {
view_label: "Sessions"
type: left_outer
sql_on: ${event_facts.session_id} = ${session_pg_trk_facts.session_id} ;;
relationship: many_to_one
}
}