-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbpr.view.lkml
108 lines (95 loc) · 1.92 KB
/
bpr.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
view: bpr {
sql_table_name: zuora.bpr ;;
dimension: account_number {
description: "ufds uuid account number"
type: string
sql: ${TABLE}."AccountNumber" ;;
}
dimension: charge_amount {
description: "USD charge amount"
type: number
sql: ${TABLE}."ChargeAmount" ;;
}
dimension_group: charge {
description: "Timestamp for the charge"
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}."ChargeDate" ;;
}
dimension: charge_type {
description: "Charge type from Zuora"
type: string
sql: ${TABLE}."ChargeType" ;;
}
dimension: datacenter {
description: "JPC data center"
type: string
sql: ${TABLE}."Datacenter" ;;
}
dimension: name {
description: "Zuora subscription name"
type: string
sql: ${TABLE}."Name" ;;
}
dimension: quantity {
description: "Zuora quanity of items"
type: number
sql: ${TABLE}."Quantity" ;;
}
dimension_group: service_end {
description: "Timestamp for service end time"
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}."ServiceEndDate" ;;
}
dimension_group: service_start {
description: "Timestamp for service start time"
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}."ServiceStartDate" ;;
}
dimension: uom {
description: "Unit of Measure from Zuora"
type: string
sql: ${TABLE}."UOM" ;;
}
measure: count {
description: "Count of billing preview records"
type: count
drill_fields: [name]
}
measure: total_quant {
description: "Sum of quanities"
type: sum
sql: ${quantity} ;;
}
measure: total_spend {
description: "sum of spend"
type: sum
sql: ${charge_amount} ;;
}
}