See the view reference for the full list of
parameters and configuration options.
Why views matter
Views are the primary interface between your data model and your users. While cubes model the raw relationships and logic in your warehouse, views reshape that model into business-friendly datasets for easier exploration.Self-service analytics
Self-service analytics
Views shield end-users from complex database schemas, table
relationships, and raw SQL. Business users can pick fields from
a curated dataset in Explore or
Workbooks without needing to understand the joins
or cube structure underneath.For example, an analyst could pick
product, total_amount, and
users_city from an orders view without thinking about the underlying
join path from base_orders through line_items to products.AI reliability
AI reliability
AI agents query your data model through views.
By curating which members are included and providing descriptive
metadata via
description and meta.ai_context, you control the
context AI uses to generate accurate queries. Well-designed views
with clear naming and descriptions lead to significantly better
AI results.Governance and access control
Governance and access control
Views give you fine-grained control over what users can see.
Each view can be scoped with access policies
to enforce row-level and member-level security. You can also set
public: false to hide internal views or use
COMPILE_CONTEXT for dynamic visibility
based on the security context.Join path clarity
Join path clarity
In complex data models, the same pair of cubes might be reachable
through multiple join paths. Views eliminate this ambiguity by
specifying the exact
join_path for each included cube, ensuring
queries always follow the intended path.Embedded analytics
Embedded analytics
Views are a natural fit for embedded analytics.
Different customer tiers can get access to different views,
allowing you to tailor the analytics experience to your
monetization strategy without duplicating cubes.
How views work
Views do not define their own members. Instead, they reference cubes by specific join paths and selectively include measures, dimensions, and segments from those cubes.orders view pulls in members from three cubes
along their join paths. End-users see a flat list of fields — status,
created_date, product, users_city, etc. — without being exposed to
the underlying cube structure.
Designing effective views
Build for your audience
Design views around how your business users think about data, not around how your database is structured. Group related fields into views that align with departments or use cases — for example,sales_overview,
customer_360, or product_analytics.
Favor focused views
Smaller, focused views are easier to navigate and lead to better AI results. Rather than one massive view with hundreds of fields, create several purpose-built views:- Views are easier for business users to understand when they’re scoped to a specific domain
- AI agents perform better with focused context
- Simpler views translate to simpler SQL queries with fewer joins
Curate with metadata
Help your users understand what a view is for and how to use it:- Set a clear
descriptionto explain the view’s purpose - Use
titlefor user-friendly display names - Add
meta.ai_contextto guide AI agents - Organize fields into
foldersfor logical grouping
Keep shared logic in cubes
Views are a curation layer. All business logic — SQL definitions, measure calculations, join relationships — should live in cubes. Views should only control which members are exposed, how they’re named, and how they’re organized. This keeps your model DRY and makes maintenance straightforward.Control visibility
Not every view should be publicly accessible. Usepublic
to hide views that are meant for internal use or are still in development:
COMPILE_CONTEXT:
Organizing members with folders
When a view includes many fields, folders help organize them into logical groups. Cube supports both flat and nested folder structures:Next steps
- See the view reference for the full list of parameters
- Learn about access policies to govern view access
- Explore AI context to improve AI query accuracy
- Use the Semantic Model IDE to develop views interactively