view: dt_flatten_country_region {
sql_table_name: INTELLIGENCE.DBT_PROD.DT_FLATTEN_COUNTRY_REGION ;;

  dimension: country_region_id {
    type: number
    sql: ${TABLE}.id ;;
    primary_key: yes
    hidden: yes
  }

  dimension: country_region_name {
    label: "
    {% if _view._name == 'market_country' %} Priority Country
    {% else %} Country Name {% endif %}
    "
    type: string
    sql: ${TABLE}.name ;;
  }

  measure: priority_country_list {
    type: list
    list_field: country_region_name
  }

}
