-
Notifications
You must be signed in to change notification settings - Fork 35
/
snowflake.forex.view.lkml
88 lines (73 loc) · 1.27 KB
/
snowflake.forex.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
view: sf_forex {
sql_table_name: exchangerate.forex ;;
dimension: aud_usd {
type: number
sql: ${TABLE}.AUD_USD ;;
}
dimension: chf_jpy {
type: number
sql: ${TABLE}.CHF_JPY ;;
}
dimension: eur_chf {
type: number
sql: ${TABLE}.EUR_CHF ;;
}
dimension: eur_gbp {
type: number
sql: ${TABLE}.EUR_GBP ;;
}
dimension: eur_jpy {
type: number
sql: ${TABLE}.EUR_JPY ;;
}
dimension: eur_usd {
type: number
sql: ${TABLE}.EUR_USD ;;
}
dimension_group: exchange {
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}.exchange_date ;;
}
dimension: gbp_chf {
type: number
sql: ${TABLE}.GBP_CHF ;;
}
dimension: gbp_jpy {
type: number
sql: ${TABLE}.GBP_JPY ;;
}
dimension: gbp_usd {
type: number
sql: ${TABLE}.GBP_USD ;;
}
dimension: nzd_usd {
type: number
sql: ${TABLE}.NZD_USD ;;
}
dimension: usd_cad {
type: number
sql: ${TABLE}.USD_CAD ;;
}
dimension: usd_chf {
type: number
sql: ${TABLE}.USD_CHF ;;
}
dimension: usd_jpy {
type: number
sql: ${TABLE}.USD_JPY ;;
}
measure: count {
type: count
drill_fields: []
}
}