This tutorial helps a data analyst explore BigQuery data using Looker Studio. Looker Studio is a free, self-service business intelligence platform that lets users build and consume data visualizations, dashboards, and reports. With Looker Studio, you can connect to your data, create visualizations, and share your insights with others.
In this tutorial, you use Looker Studio to visualize data in the
BigQuery
austin_bikeshare
dataset. For more information about public data sets, see
BigQuery public datasets.
Objectives
- Create a query in BigQuery.
- View a table schema in BigQuery.
- Explore and visualize the query results and table data in a Looker Studio report.
Costs
This tutorial uses a dataset available through the Google Cloud Public Dataset Program. Google pays for the storage of these datasets and provides public access to the data. You pay only for the queries that you perform on the data. BigQuery provides 1 GB of reservation capacity without charge to accelerate Looker Studio queries. For details about BigQuery analysis pricing, see Overview of BigQuery pricing.
Before you begin
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project. Learn how to check if billing is enabled on a project.
-
Enable the BigQuery API.
For new projects, BigQuery is automatically enabled.
Explore BigQuery data in Looker Studio
You can explore data in BigQuery with Looker Studio using the following options:
Explore query results
This option lets you construct an arbitrary SQL query and visualize the data in Looker Studio. This is useful if you want to modify the data in BigQuery before working with it in Looker Studio, or if you only need a subset of the fields in the table.
In the Google Cloud console, go to the BigQuery page.
Select your billing project.
In the Explorer pane, enter
bikeshare_trips
in the Type to search field.Go to bigquery-public-data > austin_bikeshare > bikeshare_trips.
Click
View actions, and then click Query.In the query editor, construct your query. For example:
SELECT * FROM `bigquery-public-data.austin_bikeshare.bikeshare_trips` LIMIT 1000;
Click
Run.In the Query results section, click Explore data, and then click Explore with Looker Studio.
On the Welcome to Looker Studio page, click Get Started if you agree to the Google Looker Studio and Google Terms of Service.
On the Authorize Looker Studio access page, click Authorize to authorize the connection if you agree to the terms of service, and then select your marketing preferences. Only you can view data in your report unless you grant others permission to view the data.
The report editor displays your query results as Looker Studio charts.
The following image shows some features of a Looker Studio report:
Legend:
- Looker Studio logo and report name.
- To go to the Looker Studio page, click the logo.
- To edit the report name, click the name.
- Looker Studio toolbar. The Add a chart tool is highlighted.
- Report title. To edit the text, click the text box.
- Table (selected). You can interact with a selected chart by using the options in the chart header.
- Bar chart (not selected).
- Chart properties pane. For a selected table, you can configure its data properities and appearance on the Setup and Style tabs.
- Data pane. In this pane, you can access the
fields and data sources to use in your report.
- To add data to a chart, drag fields from the Data pane onto the chart.
- To create a chart, drag a field from the Data pane onto the canvas.
- Save and share. Save this report so you can view, edit, and share it with others later. Before you save the report, review the data source settings and the credentials that the data sources use.
Interact with charts
Looker Studio charts are interactive. Now that your data is displayed in Looker Studio, here are some things to try:
- Scroll and page through the table.
- In the Bar chart, hold the pointer over a bar to see details about the data.
- Select a bar in the bar chart to cross-filter the table by that dimension.
Add charts
Looker Studio supports many different visualization types. To add more charts to the report, follow these steps:
- In the toolbar, click Add a chart.
- Select the chart you want to add.
- Click the canvas to add the chart to the report.
- Use the Chart properties pane to configure the chart.
For more information about adding charts to a report, see Add charts to your report.
Explore table schema
You can export table schema to see the metadata of your data in Looker Studio. This is useful if you don't want to modify the data in BigQuery before working with it in Looker Studio.
In the Google Cloud console, go to the BigQuery page.
Select your billing project.
In the Explorer pane, enter
bigquery-public-data
in the Type to search field.Go to bigquery-public-data > austin_bikeshare > bikeshare_trips.
In the toolbar, click
Export. If Export is not visible, select More actions, and then click Export.Click Explore with Looker Studio.
Share reports
You can share reports with others by sending them an email invitation to visit Looker Studio. You can invite specific people or Google Groups. To share more broadly, you can also create a link that lets anyone access your Looker Studio reports.
To share a report with another person, follow these steps:
- In the Looker Studio page header, click Share.
- In the Sharing with others dialog, type the recipient's email address. You can enter multiple email addresses or Google Group addresses.
- Specify whether recipients can view or edit the report.
- Click Send.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used in this tutorial, either delete the project that contains the resources, or keep the project and delete the individual resources.
Delete the project
- In the Google Cloud console, go to the Manage resources page.
- In the project list, select the project that you want to delete, and then click Delete.
- In the dialog, type the project ID, and then click Shut down to delete the project.
Deleting your project prevents Looker Studio from querying the data because the data source is associated with your project. If you do not want to delete your Google Cloud project, you can delete the Looker Studio report and data source.
Delete the resources
To delete the Looker Studio resources, follow these steps:
Open Looker Studio.
On the Reports page, hold the pointer over the report that you want to delete, then click the vertical dots
.Click Remove.
What's next
- To learn more about writing queries for BigQuery, see Overview of BigQuery analytics. This document explains tasks such as how to run queries or create user-defined functions (UDFs).
- To explore BigQuery syntax, see Introduction to SQL in BigQuery. In BigQuery, the preferred dialect for SQL queries is standard SQL. BigQuery's older SQL-like syntax is described in Legacy SQL functions and operators.