-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsf_crime.view.lkml
87 lines (72 loc) · 1.35 KB
/
sf_crime.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
view: sf_crime_original {
sql_table_name: `bigquery-public-data.san_francisco.sfpd_incidents` ;;
measure: count {
type: count
drill_fields: [detail*]
}
dimension: unique_key {
type: number
sql: ${TABLE}.unique_key ;;
}
dimension: category {
type: string
sql: ${TABLE}.category ;;
}
dimension: descript {
type: string
sql: ${TABLE}.descript ;;
}
dimension: dayofweek {
type: string
sql: ${TABLE}.dayofweek ;;
}
dimension: police_district {
type: string
sql: ${TABLE}.pddistrict ;;
}
dimension: resolution {
type: string
sql: ${TABLE}.resolution ;;
}
dimension: address {
type: string
sql: ${TABLE}.address ;;
}
dimension: longitude {
type: number
sql: ${TABLE}.longitude ;;
}
dimension: latitude {
type: number
sql: ${TABLE}.latitude ;;
}
dimension: location {
type: location
sql_latitude: ${latitude} ;;
sql_longitude: ${longitude} ;;
}
dimension: pdid {
type: number
sql: ${TABLE}.pdid ;;
}
dimension_group: timestamp {
type: time
sql: ${TABLE}.timestamp ;;
}
set: detail {
fields: [
unique_key,
category,
descript,
dayofweek,
police_district,
resolution,
address,
longitude,
latitude,
location,
pdid,
timestamp_time
]
}
}