Data Models
A data model is a set of datasets (tables) and the references between them. Each dataset holds records that share the same properties (columns), and every property has a type that tells Explore what you can do with it — total it, group by it, filter on it, or follow it to another dataset.
| Building block | What it is |
|---|---|
| Dataset | A collection of records with the same properties — orders, customers, products |
| Id | The unique key of a record; other datasets point at it |
| Reference | A link from a record to another dataset's Id |
| Attribute / Set of Attributes | Categories you filter and segment by |
| Measure | Numbers you aggregate — Sum, Average, Median and more |
| Time | A date and time for time filters and time breakdowns |
The types are described in Property Types.
An example
A typical sales model links an event dataset, orders, to the datasets that describe it. Each line is a reference from one dataset to another dataset's Id:
With this model you can ask for revenue by company industry without writing a join: Engeene follows the references from orders through customers to companies. See Cross-Dataset Analysis.
Modelling tips
- Keep the individual rows. Load individual orders rather than pre-aggregated tables — Engeene aggregates when you ask, exactly.
- Give each entity a stable Id, and link event datasets (orders, bookings) to the datasets that describe them (customers, products) with references. Several focused datasets update independently and still analyse together.
- Set a primary time property on every dataset that has an event timestamp, so time filters narrow the data quickly. Skip it only for static tables such as a product catalogue.
- Choose a sensible time granularity. It sets how precisely a time is kept: 15 minutes (the default) suits transactions and events, 1–5 minutes near real-time monitoring, and a day archival reporting. See Time Filters and Grouping.
- Attribute or measure? Values you filter or group by (country, status, plan) are attributes; numbers you add up or average (revenue, quantity, duration) are measures. A column like age can be either — when unsure, make it a measure; you can still group it into ranges in Explore.
- Give money its decimal places. Set the decimal scale on currency and other exact decimals so totals stay exact in the app and in exports.
- Round sensitive measures (for example to the nearest 1,000) when exact individual values are not needed.
- Use readable names (
revenue,orderedAt,customerId) — they appear in the app, in shared links and in anything Ask AI builds.
Where to go next
- Build or change a model in the Model Editor.
- Load data once the model exists: Bringing Data In. The model's JSON form is in the model definition.
- Link your data to ready-made reference data: Global Datasets.
- Coming from another BI tool: Migrating — Vocabulary.