Skip to content

Commit

Permalink
converting to New LookML, cleaned up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DillonMorrison committed Mar 14, 2017
1 parent 73fa354 commit f0e3c67
Show file tree
Hide file tree
Showing 47 changed files with 1,894 additions and 1,575 deletions.
98 changes: 98 additions & 0 deletions 0_pages.view.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
view: pages {
sql_table_name: segment.pages ;;

dimension: id {
primary_key: yes
type: string
sql: ${TABLE}.id ;;
}

dimension: event_id {
type: string
sql: CONCAT(${received_raw}, ${uuid}) ;;
}

dimension: anonymous_id {
type: string
sql: ${TABLE}.anonymous_id ;;
}

dimension: context_campaign_content {
type: string
sql: ${TABLE}.context_campaign_content ;;
}

dimension: context_campaign_medium {
type: string
sql: ${TABLE}.context_campaign_medium ;;
}

dimension: context_campaign_name {
type: string
sql: ${TABLE}.context_campaign_name ;;
}

dimension: name {
type: string
sql: ${TABLE}.name ;;
}

dimension_group: received {
type: time
timeframes: [raw, time, date, week, month]
sql: ${TABLE}.received_at ;;
}

dimension: referrer {
type: string
sql: ${TABLE}.referrer ;;
}

dimension: title {
type: string
sql: ${TABLE}.title ;;
}

dimension: url {
type: string
sql: ${TABLE}.url ;;
}

dimension: user_id {
type: string
# hidden: true
sql: ${TABLE}.user_id ;;
}

dimension: uuid {
type: number
value_format_name: id
sql: ${TABLE}.uuid ;;
}

measure: count {
type: count
drill_fields: [id, context_campaign_name, name, users.id]
}

measure: count_visitors {
type: count_distinct
sql: ${page_facts.looker_visitor_id} ;;
}

measure: count_pageviews {
type: count
drill_fields: [context_campaign_name]
}

measure: avg_page_view_duration_minutes {
type: average
value_format_name: decimal_1
sql: ${page_facts.duration_page_view_seconds}/60.0 ;;
}

measure: count_distinct_pageviews {
type: number
sql: COUNT(DISTINCT CONCAT(${page_facts.looker_visitor_id}, ${url})) ;;
}
}
80 changes: 0 additions & 80 deletions 0_pages.view.lookml

This file was deleted.

Loading

0 comments on commit f0e3c67

Please sign in to comment.