
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Stage your Google Sheets workbook
/ 30
Use the Extract editor to sort the remaining data
/ 20
Create a calculated field to highlight only the needed
/ 20
Referencing the answer data in another sheet
/ 30
In this scenario, you are a data analyst with strong experience in Google Sheets but are new to BigQuery. You are employed with a solar energy company who is interested in identifying U.S. counties with the highest number of homeowners who can benefit from a new grant. The new United States (U.S.) federal grant is available to homeowners with homes built before 1960 and annual incomes below $60,000 USD. You know that the necessary data to identify these homeowners is in your company's BigQuery data warehouse and would like to analyze the BigQuery data in Google Sheets.
Fortunately, through the BigQuery data connector in Google Sheets, Connected Sheets provides you with the ability to access, analyze, visualize, and share BigQuery data without the need for any SQL.
In this lab, you learn to use various features of Google Sheets in order to analyze the BigQuery Connected Sheets data to answer the solar grant household eligility data question.
In this lab, you will learn how to perform the following tasks:
In order to complete this lab exercise, you must have previous knowledge with and experience perfoming the following tasks:
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
Sign in to Qwiklabs using an incognito window.
Note the lab's access time (for example, 1:15:00
), and make sure you can finish within that time.
There is no pause feature. You can restart if needed, but you have to start at the beginning.
When ready, click Start lab.
Note your lab credentials (Username and Password). You will use them to sign in to the Google Cloud Console.
Click Open Google Console.
Click Use another account and copy/paste credentials for this lab into the prompts.
If you use other credentials, you'll receive errors or incur charges.
Accept the terms and skip the recovery resource page.
You must properly stage your sheet before you can complete the tasks in this lab exercise. To begin, please perform the following steps:
Use BigQuery Connected Sheets to locate the censustract2018_5yr_top10000_housingunits data table, contained within the
Use BigQuery Connected Sheets to download the censustract2018_5yr_top10000_housingunits data table into Google Sheets.
Create a data extract using the BigQuery Connected Sheets interface.
Use the Extract editor to select the four most useful data columns needed for the data analysis:
Use the Extract editor to select and configure the two most useful column filter criteria:
Click Check my progress to verify the objective.
The data you are presented with has been reduced from 74,000 rows from the initial connection with BigQuery, to now less than 500 rows of the most relevant data needed to answer the solar grant household eligibility question.
In this task, you use the Sort option in the Extract editor in Google Sheets to present the highest number of owner occupied housing units in descending order.
In the Extract editor menu, click the Add button in the Sort section.
Type in or search for the owner_occupied_housing_units column name and select it.
On the newly added owner_occupied_housing_units sort selection, click until it displays Desc, corresponding to using a descending sort order.
Please confirm the owner_occupied_housing_units column is now displaying its data from highest number to lowest.
Proceed to the next task.
Click Check my progress to verify the objective.
In Google Sheets, a calculated field is a field that uses existing data fields and then applies additional logic to them, empowering you to create new data from your existing data. A calculated field either performs some calculation on specific data fields to create a value that is newly derived, or selects values within your existing data based on some customized criteria.
In this task, you will create a new calculated field to separate only the state and county information from the data contained in the geo_id column. You will copy only the first five characters of the geo_id fields: the first two characters corresponding to a US state, and the final three characters identifying the county name.
In the Extract 1 tab, add a new column name geo_id_county to the F1 cell.
Type the following LEFT function statement in the F2 cell: =LEFT(A2, 5) which tells Google Sheets to copy only the first five characters from the A2 cell into the F2 cell.
Select the F2 cell and using the very small square in the lower right-hand side of the field highlight, click and drag the field highlight for the next 100 rows, to implement the function for the geo_id data in those rows.
Please proceed to the next task.
Click Check my progress to verify the objective.
Within one spreadsheet in Google Sheets, you can replicate data and copy it from one sheet to another. Referencing data from other sheets
In this task, you will refrence the data needed to answer our data question about solar grant housing eligibility in a new sheet, to more cleanly display the most useful data.
Create a new sheet by click on the + button in the lower left-hand corner of the Google Sheets user interface.
In the newly created sheet, add the column title geo_id county in the B1 cell.
Type the following reference formula in the B2 cell: ='Extract 1'!F2 which tells Google Sheets to copy the data from the F2 cell in the Extract 1 sheet into the B2 cell on this one.
Select the B2 cell and using the very small square in the lower right-hand side of the field highlight, click and drag the field highlight for the next 100 rows, to implement the formula to reference the data for the remaining 99 cells.
Repeat steps 2 through 4 beginning in the C2 field in the new sheet, referencing the owner_occupied_housing_units column data using the same methods.
Click Check my progress to verify the objective.
You have successfully performed a data analysis process using data imported from BigQuery using BigQuery Connected Sheets.
When you have completed your lab, click End Lab. Qwiklabs removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Copyright 2022 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one