Skip to content

Commit

Permalink
Updated model and view files with nps_user_monthly_score references.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Nelson authored and Eric Nelson committed Feb 26, 2020
1 parent 5cfcacc commit 1ae7b6f
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vscode
.DS_Store
data_warehouse/data_warehouse_views/.DS_Store
3 changes: 3 additions & 0 deletions data_warehouse/data_warehouse.model.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,6 @@ explore: account_health_score {
# group_label: "Test"
# required_access_grants: [full_financial]
# }
explore: nps_user_monthly_score {
label: "Nps User Monthly Score"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# This is the view file for the analytics.mattermost.nps_user_monthly_score table.
view: nps_user_monthly_score {
sql_table_name: mattermost.nps_user_monthly_score ;;
view_label: "Nps User Monthly Score"

# FILTERS

# DIMENSIONS
dimension: server_id {
description: ""
type: string
sql: ${TABLE}.{server_id} ;;
hidden: no
}

dimension: user_id {
description: ""
type: string
sql: ${TABLE}.{user_id} ;;
hidden: no
}

dimension: user_role {
description: ""
type: string
sql: ${TABLE}.{user_role} ;;
hidden: no
}

dimension: server_version {
description: ""
type: string
sql: ${TABLE}.{server_version} ;;
hidden: no
}

dimension: nps_score {
description: ""
type: number
sql: ${TABLE}.{nps_score} ;;
hidden: no
}

dimension: license_id {
description: ""
type: string
sql: ${TABLE}.{license_id} ;;
hidden: no
}

dimension: license_sku {
description: ""
type: string
sql: ${TABLE}.{license_sku} ;;
hidden: no
}

dimension: promoter_type {
description: ""
type: string
sql: ${TABLE}.{promoter_type} ;;
hidden: no
}

dimension: feedback {
description: ""
type: string
sql: ${TABLE}.{feedback} ;;
hidden: no
}

dimension: id {
description: ""
type: string
sql: ${TABLE}.{id} ;;
hidden: no
}


# DIMENSION GROUPS/DATES
dimension_group: month {
description: ""
type: time
timeframes: [date, month, year]
sql: ${TABLE}.{month} ;;
hidden: no
}

dimension_group: score_submission_date {
description: ""
type: time
timeframes: [date, month, year]
sql: ${TABLE}.{score_submission_date} ;;
hidden: no
}

dimension_group: user_created_at {
description: ""
type: time
timeframes: [date, month, year]
sql: ${TABLE}.{user_created_at} ;;
hidden: no
}

dimension_group: server_install_date {
description: ""
type: time
timeframes: [date, month, year]
sql: ${TABLE}.{server_install_date} ;;
hidden: no
}

dimension_group: feedback_submission_date {
description: ""
type: time
timeframes: [date, month, year]
sql: ${TABLE}.{feedback_submission_date} ;;
hidden: no
}


# MEASURES
measure: count {
description: "Count of rows/occurrences."
type: count
}

measure: server_id_count {
description: "The distinct count of Server Id's per grouping."
type: count_distinct
sql: ${server_id} ;;
}

measure: user_id_count {
description: "The distinct count of User Id's per grouping."
type: count_distinct
sql: ${user_id} ;;
}


}

0 comments on commit 1ae7b6f

Please sign in to comment.