Semantic models

Custom semantic models let you define metrics and dimensions directly on top of your underlying tables when a saved formula is not enough. Ask Claude or ChatGPT to build, preview, and save semantic models for your workspace.

When to use a semantic model

Use a saved formula for arithmetic over existing metrics, and use a custom semantic model when you need table-level transformations or specialized aggregations. Common use cases include:

  • Applying row-level logic before aggregating.
  • Joining synced tables with tables you uploaded or pushed to Reportslayer.
  • Running historical as-of lookups.
  • Calculating unique counts, medians, or quantiles.
  • Rolling up one row per key across multiple stores.
  • Spreading period-level rows across individual days.
  • Tracking balances and period changes, such as MRR new, expansion, contraction, churn, and reactivation.

Previewing before saving

Ask Claude or ChatGPT to preview a semantic model with sample rows and totals before saving it to your workspace. This lets you verify the logic and numbers before using the model in queries or dashboards.

Exporting and importing models

You can export and import semantic models in Open Semantic Interchange (OSI) format. Ask Claude or ChatGPT to export an existing model for backup or reuse, or import an OSI model definition into your workspace.