> For the complete documentation index, see [llms.txt](https://docs.zenlytic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zenlytic.com/data-modeling.md).

# Data Modeling

- [Data Modeling Overview](https://docs.zenlytic.com/data-modeling/data_modeling.md): Learn how models, views, fields, and relationships work together to give Zoë reliable context.
- [Ask Zoë for Data Model Recommendations](https://docs.zenlytic.com/data-modeling/asking-zoe-for-recommendations.md): Use Zoë to recommend, draft, and save the smallest modeling changes that improve answers.
- [Context Manager](https://docs.zenlytic.com/data-modeling/context_manager.md): Manage model files, validate changes, compare branches, and deploy updates to production.
- [Model](https://docs.zenlytic.com/data-modeling/model.md): Define warehouse connections, global settings, access grants, mappings, and relationships in a model file.
- [Relationships](https://docs.zenlytic.com/data-modeling/relationships.md): Define non-obvious joins, cardinality, and join types so Zoë generates correct cross-table SQL.
- [Views](https://docs.zenlytic.com/data-modeling/view.md): Define tables, default dates, descriptions, filters, and fields in reusable view files.
- [Fields](https://docs.zenlytic.com/data-modeling/field.md): Understand the three field types that power dimensions, dimension groups, and measures.
- [Dimensions](https://docs.zenlytic.com/data-modeling/dimension.md): Define reusable columns with labels, search behavior, access controls, and Zoë-specific guidance.
- [Dimension Groups](https://docs.zenlytic.com/data-modeling/dimension_group.md): Create time and duration fields with reusable timeframes, intervals, and timezone behavior.
- [Measures](https://docs.zenlytic.com/data-modeling/measure.md): Define metrics, valid aggregation patterns, filters, and non-additive logic for accurate analysis.
- [Sets](https://docs.zenlytic.com/data-modeling/set.md): Group reusable fields into named sets so you can reference them consistently.
- [Field Filters](https://docs.zenlytic.com/data-modeling/field_filter.md): Use filter syntax for fields and dashboards across strings, numbers, booleans, and dates.
- [Formatting](https://docs.zenlytic.com/data-modeling/formatting.md): Format numbers, currencies, percentages, and images with supported value format names.
- [Symmetric Aggregates](https://docs.zenlytic.com/data-modeling/symmetric_aggregates.md): Use distinct-key aggregates to avoid double counting when joins duplicate metric values.
- [Table Calculation Syntax](https://docs.zenlytic.com/data-modeling/table_calculation_syntax.md): Reference supported table calculation functions and arithmetic for post-query analysis.
- [Referenceable Attributes](https://docs.zenlytic.com/data-modeling/referenceable_attributes.md): Use user and query attributes inside SQL for dynamic filtering and query behavior.
- [Access Grants](https://docs.zenlytic.com/data-modeling/access_grants.md): Apply user-attribute-based column and row access controls with access grants and access filters.
- [dbt MetricFlow Integration](https://docs.zenlytic.com/data-modeling/dbt_metricflow.md): Connect dbt Semantic Layer projects to Zenlytic and extend them with Zenlytic metadata.
- [Adding a New Table](https://docs.zenlytic.com/data-modeling/adding_a_new_table.md): Add a warehouse table or CSV, configure metadata, and attach it to your model.
- [Cache Refresh](https://docs.zenlytic.com/data-modeling/cache-refresh.md): Force-refresh the model cache after direct git changes so Zoë uses the latest context.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zenlytic.com/data-modeling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
