The visual modeling canvas in Looker lets you connect to BigQuery data sources so that you can build and edit LookML data models by using an interactive, drag-and-drop canvas. With the visual modeling canvas, you can visually join tables, define dimensions and measures, preview query results in real time, and publish Explores without writing LookML code.

Canvas components
The visual modeling canvas includes the following workspace components and navigation tabs:
- Sources database: A searchable sidebar that displays available database datasets, tables, and views on the active connection
- Visual canvas graph_4: The main workspace where you drag tables, arrange table nodes, and define join relationships
- LookML code code: A panel that displays the generated LookML code that's behind your visual model
- Data preview table_chart: A collapsible bottom panel that shows a real-time query preview (
LIMIT 100) of the joined dataset - Field editor edit_attributes: A panel for adding, renaming, and customizing dimensions and measures
Before you begin
To use the visual modeling canvas, you must have the following:
- A Looker instance running Looker 26.14 or later, that's configured by a Looker admin to enable self-service Explores
- A BigQuery database connection that's configured with the following settings:
- Configured with the All projects scope in the Databases tab of the Connections page
- Configured for authentication with OAuth
- A Looker user account with the
create_self_service_from_tablepermission - A Google Account with the following IAM roles for the target BigQuery tables:
Creating a visual model
The following sections provide the steps for creating a new data model by using the visual modeling canvas:
- Connect to your database
- Add tables to the canvas
- Define relationships and joins
- Add and configure measures and dimensions
- Preview your data in real time
- View the LookML for your model
- Publish your model to an Explore
Connect to your database
To connect to your database, follow these steps:
- In Looker, click the Create button in the main navigation.
- Select Data source.
- In the Create data source dialog, select the Connect to Database tab.
- Choose a database connection from the BigQuery Connection drop-down menu.
- Specify your project:
- Select Select from list to choose from available projects on the connection.
- Select Enter manually to type the project ID directly.
- Specify whether to include all tables or select specific tables:
- Select Include all datasets and tables in this selected project to begin with an empty canvas. From the empty canvas, you can add tables from your sources list.
- Select Choose a specific table to specify a single dataset and table to add to the canvas. The visual modeling canvas will open to the field editor and load the fields from your selected table. You can click Visual canvas graph_4 from the navigation bar to see the table in the canvas. You can add other tables from your sources list.
- Click Continue to open the visual modeling canvas.
Add tables to the canvas
To add tables to the canvas to begin modeling your data, follow these steps:
- In the Sources database sidebar, browse or search for the datasets, tables, or views that you want to model.
- Drag each table from the sidebar onto the canvas.
- Reposition table nodes on the canvas to organize your data model layout.
When you drag a table onto the canvas, the visual modeling canvas represents it as a table node. The canvas displays the table name and its BigQuery project and dataset ID. The first table added to the canvas is labeled Base view.
Define relationships and joins
When you add more than one table to the canvas, the visual modeling canvas scans for matching column names (for example, order_id in orders and order_items) and automatically proposes a join connection line between the tables.
To modify or create relationships between tables in your database, follow these steps:
- Click the join connection line between two table nodes to open the Join Configuration panel. Configure the join in the Join Configuration panel:
- Join Type: Select the join type (Left Outer, Inner, or Full Outer). By default, Looker uses a Left Outer join.
- Relationship (Cardinality): Select the relationship type (One-to-One, One-to-Many, Many-to-One, or Many-to-Many).
- Join clause: Review the automatically suggested join keys, or add custom join conditions. You can specify multiple join conditions (such as
orders.id = order_items.order_id AND orders.date = order_items.date).
- Resolve Join Errors: If a join creates an invalid SQL path or circular reference, the connection line turns red with an explanatory tooltip. Adjust the join keys or relationship cardinality to resolve the error.
- If you have changed the join settings, click Apply to apply your changes to the join.
Add and configure measures and dimensions
The visual modeling canvas automatically sets up dimensions and measures for your tables, and lets you add custom calculations. By default, the visual modeling canvas creates a measure of type count or sum for numeric fields, while retaining fields with names containing ID, Key, or Code as numeric dimensions. When you define a One-to-Many relationship, the visual modeling canvas automatically applies symmetric aggregation logic to prevent fan-out and duplicate value calculation errors.
You can't delete a generated field; you can only hide it, either by selecting Hide from the field's gear menu in the field editor, or by clicking the field's Edit edit icon and selecting the Hide this field from Explores and visualizations checkbox.
To view the fields for a table, select the table node in the canvas and then click Edit fields.
From the field editor, you can perform the following tasks:
Edit a dimension
To edit an existing dimension, follow these steps:
- From the visual modeling canvas, select a table node in the canvas and then click Edit fields to open the field editor.
- In the field editor, click the Dimensions tab.
- Find the dimension that you want to edit and click the field's Edit edit icon to open the Edit dimension dialog.
- Update any of the following fields (the Data type field is read-only):
- Format: Select a formatting option from the drop-down menu.
- Name: Edit the name that's used to identify the dimension in LookML and expressions.
- Label: Edit the label that appears in Explores and visualizations.
- + Add description: Click this option to enter or edit an optional description for the dimension.
- Hide this field from Explores and visualizations: Select or clear this checkbox to hide or display the dimension.
- Click Save.
Edit a measure
To edit an existing measure, follow these steps:
- From the visual modeling canvas, select a table node in the canvas and then click Edit fields to open the field editor.
- In the field editor, click the Measures tab.
- Find the measure that you want to edit and click the field's Edit edit icon to open the Edit measure dialog.
Update any of the following fields:
- Field to measure: Select the field that you want to aggregate from the drop-down menu.
- Measure type: Select the aggregation type (such as Sum, Count, Average, Min, or Max) from the drop-down menu.
- Label: Edit the label that appears in Explores and visualizations.
- Filters tab: Under Narrow results, select a field from the Filter name drop-down menu and specify a Filter value. Use the + and - buttons to add or remove filter conditions.
- Field details tab: Select a formatting option from the Format drop-down menu and enter an optional Description (up to 255 characters).
- Hide this field from Explores and visualizations: Select or clear this checkbox to hide or display the measure.
Click Save.
Create a custom dimension
To create a custom dimension by using a Looker expression, follow these steps:
- From the visual modeling canvas, select a table node in the canvas and then click Edit fields to open the field editor.
- From the field editor in the visual modeling canvas, click Add dimension to open the Create dimension dialog.
- In the expression editor box, enter a Looker expression that defines the dimension, or click Help me write an expression with Gemini to generate an expression.
- Select a formatting option from the Format drop-down menu.
- Enter a Name and a Label for the dimension.
- Optionally, click + Add description to enter or edit a description for the dimension.
- Optionally, select the Hide this field from Explores and visualizations checkbox to hide the dimension.
- Click Save.
Create a custom measure
To create a custom measure, follow these steps:
- From the visual modeling canvas, select a table node in the canvas and then click Edit fields to open the field editor.
- In the field editor, click the Measures tab and then click Add measure to open the Create measure dialog.
- Select the field that you want to aggregate from the Field to measure drop-down menu.
- In the Measure type drop-down, select the type of aggregation that you want to perform on the Field to measure field.
- Enter a Label for the measure.
- Configure optional filter conditions or formatting details:
- Filters tab: Under Narrow results, select a field from the Filter name drop-down menu and specify a Filter value. Use the + and - buttons to add or remove filter conditions.
- Field details tab: Select a formatting option from the Format drop-down menu and enter an optional Description (up to 255 characters).
- Optionally, select the Hide this field from Explores and visualizations checkbox to hide the measure.
- Click Save.
Preview your data in real time
Follow these steps to verify the data output of your model:
- In the visual modeling canvas, click the Data preview tab table_chart from the navigation bar.
- Click a table in the canvas to select fields from that table.
- In the data preview pane, click the Preview columns drop-down menu.
From the drop-down menu, select the fields from the table that you want to query, and then click Preview.
The visual modeling canvas will query your database and show the query results in a table in the data preview pane.
Inspect the data to ensure that no unintended row fan-out or dropped records occur.
Update the joins or fields as necessary, and then click Refresh schema in the data preview pane to update the table.
View the LookML
Click the LookML code tab code to inspect the generated LookML for your model. The LookML for visual models is read-only. If you want to edit fields and joins, use the visual modeling canvas.
Publish your model to an Explore
To save your model, click the Explore data button in the visual modeling canvas.
Looker generates the underlying LookML model files and saves the canvas layout coordinates. Your model is now published and ready to query.
Accessing visual models
Published visual models appear in the Looker navigation under Explore in the Self-service Explores section.
To query a visual model, follow these steps:
- In Looker, click Explore in the main navigation.
- Under Self-service Explores, select your model's Explore name.
- Select dimensions and measures from the field picker, add filters, and run queries to create visualizations and dashboard tiles.
Editing an existing visual model
To modify an existing model that's created with the visual modeling canvas, follow these steps:
- In Looker, click Explore in the main navigation menu.
- Under Self-service Explores, open the Explore for the model that you want to edit.
- Select Edit Model from the Explore's field picker to open the visual modeling canvas. If you're using the classic Explore experience, select Edit Model from the Explore's gear menu.
- Make your changes in the visual modeling canvas (such as adding tables, updating join clauses, or creating new measures).
- Click Explore data to update the model.
Deleting a visual model
To delete a visual model, follow these steps:
- In Looker, click Explore in the main navigation menu.
- Under Self-service Explores, open the Explore for the model that you want to edit.
- Select Edit Model from the Explore's field picker to open the visual modeling canvas. If you're using the classic Explore experience, select Edit Model from the Explore's gear menu.
- From the visual modeling canvas, select Delete from the three-dot menu.