-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathchannel_demographics_a1_ycr.view.lkml
95 lines (80 loc) · 1.53 KB
/
channel_demographics_a1_ycr.view.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
90
91
92
93
94
95
view: channel_demographics_a1_ycr {
sql_table_name: youtube_channel_reports.channel_demographics_a1_ycr ;;
dimension_group: _data {
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
sql: TIMESTAMP(${TABLE}._DATA_DATE) ;;
}
dimension_group: _latest {
hidden: yes
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
sql: ${TABLE}._LATEST_DATE ;;
}
dimension: age_group {
type: string
sql: ${TABLE}.age_group ;;
}
dimension: channel_id {
type: string
sql: ${TABLE}.channel_id ;;
}
dimension: country_code {
map_layer_name: countries
type: string
sql: ${TABLE}.country_code ;;
}
dimension: date {
hidden: yes
type: string
sql: ${TABLE}.date ;;
}
dimension: gender {
type: string
sql: ${TABLE}.gender ;;
}
dimension: live_or_on_demand {
type: string
sql: ${TABLE}.live_or_on_demand ;;
}
dimension: subscribed_status {
type: string
sql: ${TABLE}.subscribed_status ;;
}
dimension: video_id {
type: string
sql: ${TABLE}.video_id ;;
}
dimension: views_percentage {
type: number
sql: ${TABLE}.views_percentage ;;
}
measure: avg_views_percentage {
type: average
sql: ${views_percentage} ;;
}
measure: total_views_percentage {
type: sum
sql: ${views_percentage} ;;
}
# measure: count {
# type: count
# drill_fields: []
# }
}