-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmantagoal.view.lkml
49 lines (43 loc) · 917 Bytes
/
mantagoal.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
view: mantagoal {
sql_table_name: capacity.mantagoal ;;
dimension: compound_primary_key {
primary_key: yes
hidden: yes
sql: ${TABLE}.date || ${TABLE}.region;;
}
dimension_group: date {
description: "Timestamp for the goal normalized PiB to be available"
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}.date ;;
}
dimension: goal {
description: "PiB for the region's goal"
type: number
sql: ${TABLE}.goal ;;
}
dimension: region {
description: "The name of the region"
type: string
sql: ${TABLE}.region ;;
}
measure: count {
description: "Number of distinct objects returned in query"
type: count
drill_fields: []
}
measure: goalsum {
description: "Sum of Normalized PiB"
type: sum
sql: ${goal} ;;
}
}