-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjccontracts.view.lkml
63 lines (57 loc) · 1.06 KB
/
jccontracts.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
view: jccontracts {
sql_table_name: smartdc.jccontracts ;;
dimension: compound_primary_key {
description: "primary key contractEnd and uuid"
primary_key: yes
hidden: yes
sql: ${TABLE}."contractEnd" || ${TABLE}."uuid";;
}
dimension_group: contract_end {
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}."contractEnd" ;;
}
dimension_group: contract_start {
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}."contractStart" ;;
}
dimension: customer {
type: string
sql: ${TABLE}."Customer" ;;
}
dimension: out_tib_limit {
type: number
sql: ${TABLE}."outTiBLimit" ;;
}
dimension: report_name {
type: string
sql: ${TABLE}."ReportName" ;;
}
dimension: uuid {
type: string
sql: ${TABLE}."uuid" ;;
}
measure: count {
type: count
drill_fields: [report_name]
}
}