Create a Metabase model: reusable starting points and safe changes
A Metabase model is a saved question that selects and describes a useful subset of data as a reusable table for starting new questions. Use one to make source data easier to explore. If you need to write recurring results to a database table and refresh them on a schedule, consider Transforms, which current Metabase docs recommend over model persistence.
This guide follows the Metabase v65 documentation read on 2026-11-19. Models can use tables from the same database, and SQL models need accurate column metadata to work with the query builder. UI and plan-specific features can vary by deployment version.
How models differ from questions and tables
A model is more than a renamed table. It saves query-builder or SQL results as a clear starting point for analysts. You can remove unnecessary columns or rows, combine tables, and add calculated columns. Models are emphasized in search and organized in collections to encourage reuse.
A model is also different from an aggregated metric: it supplies a data structure for new questions; a metric saves a reusable aggregation formula. For scheduled preprocessing, cleaning, joining, or writing results to a database table, a Transform may fit better. Current documentation says model persistence will be deprecated in a future version and recommends Transforms instead.
Before creating a model
Search for an existing model or question that already meets the need. Duplicate models can split definitions and confuse users.
Decide which business question the model should support, its fields, row scope, and grain. For example, specify whether a customer model has one row per customer or per customer-month.
Confirm that the source tables are in one database. Models can combine one or more tables from the same database.
Decide whether people need a starting point for exploration or a periodically refreshed physical table. For the latter, check Transform database support, write permissions, scheduling, and cost.
Create a model and set metadata
To create one, open Models in the sidebar and select +, or use the command palette’s New model action. Choose the query builder or SQL, define the data and query, and save. From a saved question, first save it in a collection, then choose … > Turn this into a model. New models are pinned to the current collection.
The query builder may fill in some metadata. With a SQL model, review every output column yourself. Metabase says that if you set only one kind of metadata, set Column type. SQL model columns need types so people can explore them in the query builder.
| Column metadata | How to set it |
|---|---|
| Display name and description | Use a clear business name; describe meaning, unit, NULL handling, or calculation basis. |
| Column type | Match the actual values. Distinguish dates, identifiers, and categories from numeric measures. |
| Database column mapping | Set only when a SQL output column has the same type as an existing database column. |
| Display location | Choose whether the column belongs in table and detail views or only record detail. |
| Searchable records | For a model of individual records, consider an identifying text field. Requires an integer entity key and indexes up to 25,000 unique strings per field. |
Models are highlighted in search when others start questions. Use collections to organize location and access, and separately check permissions to the model and its data.
Change a model and choose performance options
Saving edits to a model’s query definition overwrites that model. Unlike a question, it does not prompt to save as a new item. Duplicate it or create a replacement first when safer review is needed. Check the Relationships tab for dependent questions and History for prior edits.
Metabase Pro and Enterprise can detect some breaking dependencies on save. Removed or renamed column references may be flagged, but changes to column types or computation logic may not be detected. Do not rely only on plan-specific checks: compare representative downstream questions before and after a change. Metabase retains the previous 15 versions with a history and revert option; include recovery in the change plan.
Model persistence stores model results as tables in a dedicated schema in the connected data warehouse, rather than in Metabase’s application database. Current docs list PostgreSQL, MySQL, and Redshift support, and say persistence does not work with row/column security or impersonation. It requires enabling the instance, configuring each database’s schema and write access, and opting in individual models. Docs also say model persistence will be deprecated in a future version, so prefer Transforms for persisted outputs.
Transforms write SQL or query-builder results back to a database and sync the resulting table as a source for new questions. They can be scheduled and their run history reviewed, but first check supported databases, plan requirements, write permissions, and feature settings. Use a model for a reusable exploration starting point; consider a Transform for a physical result that must be regenerated.
Validation checklist
Can a user select the model as the source for a new question?
Are all SQL model column types and date/identifier meanings correct?
Do grain and aggregations remain correct when filters, sorting, or grouping change?
Can representative users access the model and required underlying data?
Have you checked dependent questions, history, and results before/after changes, including types and computation logic?
Does a model or Transform refresh within acceptable freshness and runtime limits?
A model is a starting point built on a well-described dataset; it does not automatically fix incorrect source definitions or guarantee access to every user. Maintain clear grain, column descriptions, and dependency reviews.
Sources
[Metabase v65: Models](https://www.metabase.com/docs/latest/data-modeling/models/models)
[Metabase v65: Model persistence](https://www.metabase.com/docs/latest/data-modeling/models/model-persistence)
[Metabase v65: Transforms](https://www.metabase.com/docs/latest/data-modeling/transforms/transforms-overview)