-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.view.lookml
57 lines (44 loc) · 1020 Bytes
/
customer.view.lookml
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
- view: customer
fields:
- dimension: customer_id
primary_key: true
type: int
sql: ${TABLE}.customer_id
- dimension: active
type: yesno
sql: ${TABLE}.active
- dimension: address_id
type: int
# hidden: true
sql: ${TABLE}.address_id
- dimension_group: create
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.create_date
- dimension: email
sql: ${TABLE}.email
- dimension: first_name
sql: ${TABLE}.first_name
- dimension: last_name
sql: ${TABLE}.last_name
- dimension_group: last_update
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.last_update
- dimension: store_id
type: yesno
# hidden: true
sql: ${TABLE}.store_id
- measure: count
type: count
drill_fields: detail*
# ----- Sets of fields for drilling ------
sets:
detail:
- customer_id
- first_name
- last_name
- store.store_id
- address.address_id
- payment.count
- rental.count