What is a question?
A question is composed of three parts:- The query: The data you want to retrieve from your database
- The results: The data returned by your query
- The visualization: How you choose to display those results (table, chart, etc.)
Creating a new question
There are several ways to create a question in Metabase:- From scratch
- From existing question
- With Metabot
Click + New in the main navigation and choose how you want to query your data:
- Question: Opens the graphical query builder
- SQL query: Opens the native SQL editor
Choosing your data source
When creating a question, you’ll first select where your data comes from:Tables
Query data directly from database tables. Select your database, then choose the specific table you want to analyze.
Models
Start from a curated dataset. Models are specially prepared questions that serve as good starting points, similar to views in SQL.
Saved questions
Build on existing questions. Use any saved question’s results as the foundation for a new analysis.
Metrics
Begin with pre-defined calculations. Metrics are standardized measures like revenue or active users defined by your team.
Building your question
Filter your data
Narrow down the data by adding filters. You can filter by date ranges, categories, numeric values, and more.
Summarize and group
Calculate metrics like counts, sums, and averages. Group by dimensions like time, location, or category to break down your metrics.
Saving your question
Once you’ve built your query and visualized the results, you can save your question in two ways:- Save to collection
- Save to dashboard
Best for reusable questionsQuestions saved to collections can be:
- Added to multiple dashboards
- Found through search
- Shared with team members
- Used as data sources for other questions
When saving a question, you can add a name and description. The description supports Markdown formatting, which is helpful for documenting what the question shows and why it matters.
Question metadata and information
Click the info icon in the upper right to view details about your question:Overview tab
- Description: Add context about what the question shows (supports Markdown)
- Created by: Who originally created the question
- Last edited by: Who made the most recent changes
- Saved in: The collection or dashboard containing the question
- Based on: The underlying database and table
- Entity ID: Unique identifier used for serialization across Metabase instances
History tab
Metabase automatically tracks the last 15 versions of each question. You can:- View what changed in each version
- See who made the changes and when
- Revert to a previous version if needed
Working with questions
Preview results while building
Preview results while building
As you build your question, click the Preview button (play icon) next to each step to see the first 10 rows of results. This helps you validate your query before running the full query.
Explore with drill-through
Explore with drill-through
Click on data points in your visualizations to drill deeper:
- See underlying records
- Filter by clicked values
- Break out by different dimensions
- View related data
Convert between query builder and SQL
Convert between query builder and SQL
You can view the SQL that Metabase generates for query builder questions by clicking View SQL in the top right. You can also convert a query builder question to SQL (this is one-way - you can’t convert SQL back to query builder).
Turn questions into models
Turn questions into models
Questions saved to collections can be promoted to models to signal they’re good starting points for analysis. Models can have additional metadata and serve as curated data sources.
Question permissions
To save questions to a collection, you need curate access. To create questions using the SQL editor, you need both query builder and native query permissions for that database.Checking for breaking changes
This feature is available on paid plans.
- Removing a column that other questions reference
- Renaming fields used in downstream questions
- Changing data types in ways that break filters
Moving questions between collections and dashboards
You can move a question from a collection to a dashboard if:- No other dashboards use that question, OR
- You have curate access to all dashboards using that question
Best practices
Name questions clearly
Use descriptive names that explain what the question shows. “Monthly revenue by region” is better than “Revenue question”.
Add descriptions
Document the purpose, methodology, and any important caveats. Future you (and your teammates) will thank you.
Start simple
Build questions incrementally. Start with a simple query, verify the results, then add complexity.
Preview as you build
Use the preview button to check results after each step. Catch issues early before running expensive queries.
Next steps
Query builder
Learn how to use the graphical query builder to create questions without SQL
SQL editor
Explore the native SQL editor for advanced queries and complex analysis
Creating dashboards
Organize your questions into dashboards for monitoring and reporting
Alerts
Set up alerts to get notified when your data changes