This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopportunity_history_adapter.view.lkml
110 lines (95 loc) · 1.86 KB
/
opportunity_history_adapter.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# These views shouldn't be changed, extend them in sf_extends instead.
# If you need to re-generate the file, simply delete it and click "Create View from Table" and rename it from account to _account (for example).
view: opportunity_history_adapter {
extension: required #add this if you re-generate this file
extends: [opportunity_history_schema]
dimension: id {
primary_key: yes
type: string
sql: ${TABLE}.id ;;
}
dimension_group: _fivetran_synced {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}._fivetran_synced ;;
}
dimension: amount {
type: number
sql: ${TABLE}.amount ;;
}
dimension_group: close {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.close_date ;;
}
dimension: created_by_id {
type: string
sql: ${TABLE}.created_by_id ;;
}
dimension_group: created {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.created_date ;;
}
dimension: expected_revenue {
type: number
sql: ${TABLE}.expected_revenue ;;
}
dimension: forecast_category {
type: string
sql: ${TABLE}.forecast_category ;;
}
dimension: is_deleted {
type: yesno
sql: ${TABLE}.is_deleted ;;
}
dimension: opportunity_id {
type: string
sql: ${TABLE}.opportunity_id ;;
}
dimension: probability {
type: number
sql: ${TABLE}.probability ;;
}
dimension: stage_name {
type: string
sql: ${TABLE}.stage_name ;;
}
dimension_group: system_modstamp {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.system_modstamp ;;
}
}