forked from pipeline-looker-blocks/zendesk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorganizations.view.lkml
69 lines (60 loc) · 1.52 KB
/
organizations.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
view: organizations {
sql_table_name: zendesk_stitch.organizations ;;
dimension: id {
primary_key: yes
type: number
sql: ${TABLE}.id ;;
}
dimension_group: time_created_at {
alias: [created]
description: "The time the organization was created, in the timezone specified by the Looker user"
group_label: "Time Created At"
label: "Created At"
type: time
hidden: yes
timeframes: [
time,
date,
week,
month
]
sql: ${TABLE}.created_at ;;
}
dimension: details {
description: "Details about the organization, such as its address"
type: string
sql: ${TABLE}.details ;;
}
dimension: name {
description: "The name of the organization, which corresponds to external partners (e.g. insurance entities, specific owner organizations) and internal categories (e.g. Vendors)."
type: string
sql: ${TABLE}.name ;;
}
dimension: is_owner_organization {
description: "\"Yes\" if this is a vehicle owner organization"
type: yesno
sql: ${id} IN (27717697608, 360026979927, 360072961408) ;;
}
dimension: notes {
description: "Notes about the organization, if created by admin"
type: string
sql: ${TABLE}.notes ;;
}
### Measures
measure: count {
description: "Count distinct Zendesk organizations"
type: count_distinct
sql: ${name} ;;
drill_fields: [default*]
}
set: default {
fields: [
id,
time_created_at_time,
details,
name,
is_owner_organization,
notes
]
}
}