
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
Create dimensions and measures
/ 20
Create a persistent derived table
/ 20
Use Explore filters Filter #2
/ 20
Use Explore filters Filter #4
/ 20
Apply a datagroup to an Explore
/ 20
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
This lab is recommended for students who have enrolled in the Build LookML Objects in Looker skill badge. Are you ready for the challenge?
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
When ready, click Start Lab.
The Lab Details pane appears with the temporary credentials that you must use for this lab.
If you need to pay for the lab, a pop-up opens for you to select your payment method.
Notice your lab credentials in the Lab details pane. You use them to sign in to the Looker instance for this lab.
Click Open Looker.
Enter the provided Username and Password in the Email and Password fields.
Username:
Password:
Click Log In.
After a successful login, you see the Looker instance for this lab.
You are a LookML developer intern for a new cutting-edge e-commerce company. The company's infrastructure is run solely on Google Cloud and uses Looker for their data platform to analyze and integrate insights across different data sources.
For your first assignment, you have been tasked with creating LookML objects that answer specific business requirements from your company's different teams so that they are equipped to run focused market research and data analysis.
You are expected to have the skills and knowledge for these tasks, so don't expect step-by-step guides to be provided.
Your marketing team is requesting a new view to help them calculate how many users that found their website via search that have completed orders. In addition, they want to then see the gross margin of sales and the number of return days for each order. In this section, you will build dimensions and measures to answer these questions.
Click the toggle button to enter Development mode.
Navigate to the the qwiklabs-ecommerce project and open the order_items view file.
You write your new dimensions and measures in this file.
Inside of the order_items view file, you can add your new dimensions and measures after the total_revenue_from_completed_orders
measure (around line 128).
is_search_source
.is_search_source
dimension to create a measure that sums the sale price from Search users with a Complete status on their order. Name this measure sales_from_complete_search_users
.total_gross_margin
.return_days
.Click Validate LookML to validate your code.
Click Commit Changes and Push, then click Deploy to Production.
Click Check my progress to verify the objective.
Your data analytics team has requested a derived table to include specific details about a user. It will need to include their Order ID, User ID, Total Revenue, Age, City, and State to conduct market research on where to launch an advertisement campaign. Since they will need to be using this table heavily over the next few months, the table should be already created reducing query time and database load.
In this section, you will create a native derived table and persist it based on the pre-defined datagroup (cache policy) in the model.
Once you've created the derived table, add the code to a new view file named user_details. Move this file into the views folder.
Finally, join your new user_details view to the Order Items Explore. Make sure to set the join field as user_id
on the order_items view and use a many to one relationship.
Click Commit Changes and Push, then click Deploy to Production.
Persist the user_details
derived table based on the pre-defined datagroup (cache policy) in the model file.
Set the persisted derived table to stay up for a set duration of
Click Validate LookML to validate your code.
Click Commit Changes and Push, then click Deploy to Production.
Click Check my progress to verify the objective.
In this section, you will choose the correct type of filter to use based off of different business requirements. For each filter you use, replace it with the filter in the next section for the grading to accurately check your progress.
Your marketing team has requested that you create an Explore that only shows orders where the sale price is over $
Your marketing team has requested an Explore where there is a default filter on the shipped date which can be overridden if they apply a filter on the status or delivered date. They'd like the shipped date to default to the year 2018.
Remove the previous filter.
Next, add a filter to the Order Items Explore to only return data for orders that were shipped in the year 2018, unless a filter is applied to the Order Item Status or Order Item Delivered Date.
Use the shipped_date
dimension for this filter.
Click Check my progress to verify the objective.
Your marketing team has requested that you create an Explore that only shows orders where the average sale price is more than $
Remove the previous filter.
Next, add a filter to the Order Items Explore to filter out all the items where the average sale price is more than
Finally, your marketing team has requested that you build an Explore to include a certain set of filters with default values that may be changed, but not removed. The idea is to not request all of the possible data at one time by filtering by specific dimensions, which should save on computing costs.
Specifically, they want the set of filters to be on the Order Status, State, and Traffic source. The default values should be set to Shipped, California, and Search, respectively.
Remove the previous filter.
Next, use a filter to define default values for the Order Status, State, and Traffic Source for the Order Items Explore. Make sure that the filter is required for the business user, but they will still be able to provide different values for these dimensions.
Click Check my progress to verify the objective.
Lastly, you've been requested to update the caching policy of your LookML model. Your team would like you to update the number of hours to keep a cached result to
Remove any filters you created from the previous section.
Inside of your model file, create a new datagroup named order_items_challenge_datagroup
that has a maximum caching age of SELECT MAX(order_item_id) from order_items ;;
.
Apply the datagroup at the model level to apply it as the default for all Explore.
Click Validate LookML to validate your code.
Click Commit Changes and Push, then click Deploy to Production.
Click Check my progress to verify the objective.
In this lab, you tested your LookML skills by creating different LookML objects to match a set of business requirements. You first created dimension and measures and a persistent native derived table. You then used the correct filters to filter Explores and updated the caching policy of your LookML model.
This self-paced lab is part of the Build LookML Objects in Looker skill badge. Completing this skill badge quest earns you the badge above, to recognize your achievement. Share your badge on your resume and social platforms, and announce your accomplishment using #GoogleCloudBadge.
This skill badge is part of Google Cloud’s Data Analyst learning path. If you have already completed the other skill badge quests in this learning path, search the catalog for other skill badge quests in which you can enroll.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated April 22, 2024
Lab Last Tested October 6, 2023
Copyright 2025 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