-
Notifications
You must be signed in to change notification settings - Fork 0
/
address.view.lkml
55 lines (47 loc) · 966 Bytes
/
address.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
view: address {
sql_table_name: leon_thesis_data.address ;;
dimension: address_id {
primary_key: yes
type: number
sql: ${TABLE}.address_id ;;
}
dimension: address {
type: string
sql: ${TABLE}.address ;;
}
dimension: city_id {
type: string
sql: ${TABLE}.city_id ;;
}
dimension: district {
type: string
sql: ${TABLE}.district ;;
}
dimension_group: last_update {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.last_update ;;
}
dimension: phone {
type: number
value_format: "(000) \000-0000"
sql: ${TABLE}.phone ;;
}
dimension: postal_code {
type: zipcode
value_format: "*00000#"
sql: ${TABLE}.postal_code ;;
}
measure: count {
type: count
drill_fields: [address_id, address, city_id, district, phone, postal_code, customer.count, staff.count, store.count]
}
}