These are the docs for the Metabase master branch. Some features documented here may not yet be available in the current release. Check out the docs for the current stable version, Metabase v0.58.

Data structure

Data studio > Data structure

The Data structure area of Data Studio is where you can manage table metadata to make it easier for people to work with your data.

You can do things like:

  • Browse all the tables in your Metabase
  • Publish tables to the Library
  • Sync and scan tables
  • Assign owners and other attributes to tables
  • Set table and field visibility
  • Edit table and column names and types
  • Set data formatting settings
  • Create measures and segments

Permissions for Data Structure

To access the Data Structure area of Data Studio, you need to be a members of the Admin group or the Data Analyst group (Data Analyst group is only available on Pro/Enterprise plans).

People in the Data Analyst group will have table metadata and data structure access to all tables in your Metabase, even if they have limited View Data permissions for those tables. If you only want to give someone access to table metadata for some - but not all - tables, use the table metadata permissions and access the Table Metadata through Admin > Table metadata instead of Data Studio.

Browse tables

The Data Structure tab gives you an overview of all tables in all databases connected to your Metabase, together with their owner, row count, and published state. For now, Metabase only displays row counts for PostgreSQL tables.

You can search for table names, but the search will only match beginnings of words in table names. So for example, if you search for “base”, results will include names like “Baseball stats” and “All your base are belong to us”, but the results won’t include tables like “Metabase secrets”.

You can also filter tables by attributes like owners, visibility, or source - for example, if you wanted to find all hidden tables, or all tables created from CSV uploads.

You can set table attributes, edit metadata, publish the table or create segments or measures on the table. You can also select tables in bulk to publish or assign attributes (including visibility) to multiple tables at once.

Publishing and unpublishing tables

Publishing tables to the Library is only available on Pro and Enterprise plans (both self-hosted and on Metabase Cloud).

Once you select a table in Data Structure, you can publish the table to add it to the Library. The Library is a special collection that helps you create a source of truth for analytics by providing a centrally managed set of curated content.

See Publishing tables in the Library docs.

Sync settings

You can trigger manual re-sync of the table schema. Re-syncing can be useful if you have added or removed columns from the table, and you don’t see those changes reflected in Metabase.

You can also re-scan field values for the table or discard cached field values, which is useful if you need to retrieve updated values for dropdown filters.

See syncs and scans for more information.

Table attributes

Owner

Table owner can be a Metabase user or an arbitrary email address. Use this owner attribute to let people know who on your team is responsible for which table.

Table owner attribute is not exposed to people outside Data Studio.

Visibility layer

The Visibility layer attribute controls whether people in your Metabase can see the table when building new queries. You can also use it to tag tables according to how ready for end-user consumption they are (for example, if you’re using medallion architecture).

The options are:

  • Hidden: the table isn’t available in the query builder and isn’t synced. People with SQL access can still query the table.
  • Internal: table visible in the query builder and synced.
  • Final: table is visible in the query builder and synced.

Table visibility layer can be used as a tool to improve user experience of people working in you Metabase, and it should not be used to control access - use data permissions to control access instead.

Entity type

You can use entity type to tell people what kind of information is contained in the table, for example “Transaction” or “Event”. Metabase will try to detect and automatically assign appropriate entity types (like entity type “Person” for a Users table”), but you can always change it later.

Outside Data Studio, entity type determines the record icons in the details view.

Source

Source describes where the data comes from. It can be useful when you want to identify tables that are, for example, ingested tables, or tables coming from CSV uploads.

Metabase will automatically assign the source “Metabase transforms” to tables created by Metabase transforms, and source “Uploaded data” to tables created by new CSV uploads (CSV uploads that you created before getting Data Studio will not be automatically tagged).

Table and field metadata

You can edit field descriptions, types, visibility settings, and formatting. For example, you can choose to display a filter on a field as a dropdown, or display days as 21.03.2026 instead of 03/21/2026.

See Table metadata editing.

Segments

Segments are saved filters on tables. You can use segments to create an official definition of a subset of customers, users, or products that everyone on your team can refer to consistently (for example what constitutes an “active user”).

People will see segments as options in the Filter block of the query builder.

For now, in addition to Data Studio, segments can also be managed through Admin settings > Table Metadata, see Segments in table metadata.

To see all segments on a table, select the table in Data Structure and switch to Segments tab.

Create a segment

  1. Select the table in Data structure.
  2. Scroll down and switch to Segments.
  3. Click on +New Segment. You’ll see an abridged version of Metabase’s query builder.
  4. Add the filters describing the segment (e.g. Active = true) and name the segment.
  5. To preview the records in the segment, click on the three dots icon next to the segment’s name and select Preview.
  6. Save.

Use a segment in the query builder

To use a segment in the query builder, start a new question from the table that the segment is based on, and select the segment in the Filter block. The segment’s filters will be applied behind the scenes.

Delete a segment

Deleting a segment will not break questions using it. The questions that use the segment will keep using the same filters as before.

  1. Select the table in Data structure.
  2. Scroll down and switch to Segments and choose your segment.
  3. On the segment’s page, click on the three dots icon next to the segment’s name and select Remove segment.

Measures

Measures are saved aggregations on tables. You can use measures to create an official saved calculation, like what “Net Promoter Score” is calculated.

People will see measures as options in the Summarize block of the query builder.

To see all measures on a table, select the table in Data structure and switch to Measures tab.

Create a measure

  1. Select the table in Data structure.
  2. Scroll down and switch to Measures.
  3. Click on +New measure. You’ll see an abridged version of Metabase’s query builder that focuses on aggregation.
  4. Add your aggregation. For more complex aggregations, check out custom expressions.
  5. To preview the results of the measure, click on the three dots icon next to the measure’s name and select Preview.

Use a measure in the query builder

To use a measure in the query builder, start a new question from the table that the measure is based on, and select the measure in the Summarize block. Measure’s saved aggregation will be applied behind the scenes. You can use breakouts with a saved measure.

Delete a measure

Deleting a measure will not break questions using it. The questions that use the measure will keep using the same aggregations as before.

  1. Select the table in Data structure.
  2. Scroll down and switch to Measures and choose your measure.
  3. On the measure’s page, click on the three dots icon next to the measure’s name and select Remove measure.

Read docs for other versions of Metabase.

Was this helpful?

Thanks for your feedback!
Want to improve these docs? Propose a change.