The data model
Asemic’s model is a semantic layer: a single place where your analytics vocabulary is defined once and reused everywhere. It has three levels, each built from the one below.
Events → properties → metrics
Events are your raw materials, the rows in your warehouse: login, purchase, registration, battle_started. During event setup you tell Asemic where they live and what shape they have; roles and tags mark what each event means (see Event roles and tags).
Events are the most common source, but not the only one. Pre-aggregated feeds like UA spend and installs arrive already summarized to date by dimension, and Asemic models them so their metrics combine with your user metrics (CPI, ROAS). See Data sources.
Properties are reusable facts about a user, derived from events: days since registration, total spend, battles played yesterday. A property is defined once and becomes available to every metric, cohort, and filter, instead of being re-derived (slightly differently) in every query that needs it.
Metrics are the numbers you chart: DAU, D7 retention, ARPDAU, LTV. A metric is a formula over properties and events, legible enough to read in one glance, so agreeing on a definition is a review, not an archaeology project.
The payoff is consistency: when every dashboard speaks the same definitions, “whose DAU is right?” stops being a meeting. This is also what makes the model a reliable grounding for AI-assisted analysis: a question answered through the semantic layer uses the definitions your team agreed on, not an improvised query.
Event columns
Every event exposes the same three columns, whatever its source table calls them: asemic_entity_id (the user), asemic_event_timestamp, and asemic_date. They are derived from the columns mapped as User id, Timestamp, and Date, so formulas, filters, and the AI read one name for each concept across all events. The raw column a canonical one supersedes is hidden from the pickers, but it still resolves, so formulas and saved charts that reference it by its original name keep working.
Columns are edited in the event’s editor on the Data Model page. A pre-aggregated source’s dimensions and measures work the same way.
- “Display name”: what the event or column is called in the UI and in AI answers. The id does not change, so the formulas that reference it are unaffected. Left empty, the name is derived from the id (
paid_usdreads as “Paid Usd”). - Computed columns. The ƒx toggle defines a column as a row-level SQL expression over other columns of the same source, written with
{column}references:LOWER({country})on an event,{cost_micros} / 1000000on a cost feed. The expression is evaluated per row, never aggregated, and may reference other computed columns. Clear it and the column reads the physical column of the same name again. - Hidden columns. The eye icon hides a column: it is no longer offered as a group-by or a filter, in the app or in the AI’s dimension list, and its row carries a “hidden” chip. It still resolves wherever it is referenced, in formulas, in an event’s row filter, and in saved charts. Use it for helper columns that only feed another column, such as
cost_microsbehind a computedspend_usd.
Draft and published model
Your draft is the working copy: event setup, metric packs, and manual edits all land there. Publishing creates an immutable version that charts actually use; the draft stays yours to keep iterating. The full mechanics are on the Publish page.
Where it lives
The model is derived and computed in your warehouse, in the dataset you chose as “Data model schema” during event setup. Asemic pushes queries down to it; your raw events never leave. Charts read a precomputed daily entity table, which is why backfilling exists; see Materialization for how that table works.
The model-wide settings are under the Data Model page’s ⋮ menu → “Model settings…”: “Data model schema”, “Version” (a free-form label such as v1), and “Active days”. For a Firebase/GA4 export the same form holds the analysis-ready events copy.
To see exactly what the model runs in your warehouse, ⋮ → “Compiled SQL…” opens the “Compiled SQL” dialog: one statement per generated table under “Entity tables”, and one per event under “Events”, with “Copy SQL” for the selected one. The SQL is rendered, not run, so opening it costs nothing. It reflects the published model; draft edits appear after you publish. The dialog is limited to the Data modeler role because it exposes warehouse table and column names.