-
Notifications
You must be signed in to change notification settings - Fork 31
/
f_tracker.yml
36 lines (36 loc) · 884 Bytes
/
f_tracker.yml
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
cubes:
- name: f_tracker
sql: SELECT * FROM analytics.f_tracker
measures:
- name: costs
sql: cost
type: sum
- name: clicks
sql: clicks
type: sum
- name: CPC
sql: '{CUBE.costs} / nullif(coalesce({CUBE.clicks}, 1), 0)'
type: number
dimensions:
- name: date
sql: 'dt'
type: time
- name: traffic_grouping
sql: traffic_grouping
type: string
- name: traffic_source
sql: traffic_source
type: string
- name: traffic_medium
sql: traffic_medium
type: string
- name: traffic_campaign
sql: traffic_campaign
type: string
- name: device_category
sql: device_category
type: string
- name: location_country
sql: location_country
type: string
dataSource: default