view: int_dbt_prod_top_tracks_monthly { sql_table_name: INTELLIGENCE.DBT_PROD.TOP_TRACKS_MONTHLY ;; dimension: primary_key { primary_key: yes hidden: yes description: "Primary Key" sql: concat(${TABLE}.owner_name, ${TABLE}.download_activity_date, ${TABLE}.orch_app_ar_artist_name, ${TABLE}.labelid, ${TABLE}.track_name, ${TABLE}.transaction_type_group_transaction_detail, ${TABLE}.units) ;; } dimension_group: download_activity_date { view_label: "Date" label: "Activity" type: time sql: ${TABLE}.download_activity_date ;; description: "The date when activity occured" timeframes: [year, quarter, month, week, date, day_of_year, day_of_week, week_of_year, month_name, month_num, fiscal_month_num, fiscal_quarter, fiscal_quarter_of_year, fiscal_year] } dimension: orch_app_ar_artist_name { type: string view_label: "Artist" label: "Artist Name" sql: ${TABLE}.orch_app_ar_artist_name ;; } dimension: labelid { type: number view_label: "Label" label: "Label ID" sql: ${TABLE}.labelid ;; } dimension: owner_name { type: string view_label: "Owner" label: "Owner Name" sql: ${TABLE}.owner_name;; } dimension: track_name { type: string view_label: "Track" label: "Track Name" sql: ${TABLE}.track_name;; } dimension: transaction_type_group_transaction_detail { type: string view_label: "Transaction Type" label: "Transaction Group Detail" sql: ${TABLE}.transaction_type_group_transaction_detail ;; } measure: units { type: sum view_label: "Metrics" label: "Units" sql: ${TABLE}.units ;; } }