view: int_dbt_prod_artist_by_territory_accounting { sql_table_name: INTELLIGENCE.DBT_PROD.ARTISTS_BY_TERRITORY_ACCOUNTING ;; dimension_group: activity_date { view_label: "Date" label: "Activity" type: time sql: ${TABLE}.activity_month ;; timeframes: [year, quarter, month, month_name, month_num, fiscal_month_num, fiscal_quarter, fiscal_quarter_of_year, fiscal_year] } dimension_group: accounting_date { view_label: "Date" label: "Accounting" type: time sql: ${TABLE}.accounting_month ;; timeframes: [year, quarter, month, month_name, month_num, fiscal_month_num, fiscal_quarter, fiscal_quarter_of_year, fiscal_year] } dimension: country_name { view_label: "Transaction Country" label: "Country Name" type: string sql: ${TABLE}.country_name ;; } dimension: label_id { view_label: "Label" label: "Label ID" type: number sql: ${TABLE}.label_id ;; value_format: "0" } dimension: label_name { view_label: "Label" label: "Label Name" type: string sql: ${TABLE}.label_name ;; } dimension: artist_name { view_label: "Artist" label: "Artist Name" type: string sql: ${TABLE}.artist_name ;; } dimension: transaction_group { view_label: "Transaction Type" label: "Transaction Group" type: string sql: ${TABLE}.transaction_group ;; } measure: gross_revenue_usd { view_label: "Accounting" label: "Gross Revenue USD" type: sum sql: ${TABLE}.gross_revenue_usd;; value_format:"$#,##0.00" } measure: net_revenue_usd { view_label: "Accounting" label: "Net Revenue USD" type: sum sql: ${TABLE}.net_revenue_usd;; value_format:"$#,##0.00" } measure: units { view_label: "Accounting" label: "Units" type: sum sql: ${TABLE}.units;; value_format: "#,##0" } }