You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
primary_key: yes on the unique identifier for the view.
Must be placed in group_label: "IDs".
Must be truly unique (verified by test).
Visibility:
Use hidden: yes for fields that should not be visible in the Explore (e.g., raw IDs, intermediate calculations).
2. Advanced Features
group_label: Group related fields in the field picker.
drill_fields: List of fields to show when drilling into this dimension.
link: Create external links (e.g., Google, Salesforce) or internal links.
html: formatting using Liquid (e.g., color coding).
Examples
Basic Dimensions
dimension: order_id {primary_key: yestype: numbersql: ${TABLE}.id ;;group_label: "IDs"description: "Unique identifier for the order."}dimension: status {type: stringsql: ${TABLE}.status ;;description: "Current status of the order (e.g., pending, complete)."}dimension: is_active {type: yesnosql: ${TABLE}.is_active ;;description: "Indicates if the user account is currently active."}
Advanced Dimension (HTML & Links)
dimension: website {type: stringsql: ${TABLE}.website ;;description: "Customer website URL."html: <a href="{{ value }}" target="_blank">{{ value }}</a> ;;link: {label: "Google Search"url: "http://www.google.com/search?q={{ value }}"icon_url: "http://google.com/favicon.ico"}}