-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmaestroqa.question_scores.view.lkml
71 lines (60 loc) · 1.67 KB
/
maestroqa.question_scores.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
view: question_scores {
sql_table_name: maestro.question_scores ;;
dimension: answer_id {
description: "ID of the answer this question's score belongs to"
type: string
# hidden: yes
sql: ${TABLE}.answer_id ;;
}
dimension: comment {
description: "Comment regarding the answer to this question"
type: string
sql: ${TABLE}.comment ;;
}
dimension: gradable_id {
description: "String cast ticket/case id this answer relates to"
type: string
sql: ${TABLE}.gradable_id ;;
}
dimension: is_na {
description: "Whether or not this question was marked as N/A"
type: yesno
sql: ${TABLE}.is_na ;;
}
dimension: normalized_score {
description: "Normalization of the raw score"
type: number
sql: ${TABLE}.normalized_score ;;
}
dimension: question_id {
description: "Identifier of the question that was answered"
type: string
# hidden: yes
sql: ${TABLE}.question_id ;;
}
dimension: raw_score {
description: "The numerical score number that was entered"
type: number
sql: ${TABLE}.raw_score ;;
}
dimension: template_id {
description: "Identifier of the rubric template used to grade this ticket"
type: string
# hidden: yes
sql: ${TABLE}.template_id ;;
}
dimension_group: row_updated {
description: "UTC time this row was last updated"
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.row_updated_at ;;
}
measure: count {
type: count
drill_fields: [options.option_id, answers.answer_id, templates.name, templates.template_id, questions.question_id]
}
measure: average_raw_score {
type: average
sql: ${raw_score} ;;
}
}