arrow_back

Filtering and Sorting Data in Looker

Join Sign in

Filtering and Sorting Data in Looker

1 hour Free

GSP855

Google Cloud Self-Paced Labs

Overview

Looker is a modern data platform in Google Cloud that lets you analyze and visualize your data interactively. You can use Looker to do in-depth data analysis, integrate insights across different data sources, build actionable data-driven workflows, and create custom data applications. With Looker and Google Cloud, you can deliver actionable business insights at the point of decision, create new value streams, and infuse data into products and workflows to move the business forward.

In this lab, you learn how to use Looker to query sorted and filtered data, create Looks, and add them to a Dashboard. For this lab, an Explore of the Federal Aviation Administration's (FAA) Airport data has been created for you. This dataset contains information on different attributes of airports such as city, date of commission, facility type, etc.

You can learn more about creating Explores in the Looker documentation at https://docs.looker.com/exploring-data/exploring-data.

Objectives

In this lab, you will learn how to:

  • Work with Dimensions and Filters to select and filter data

  • Create table visualizations on sorted and filtered data

  • Save Explore queries as Looks

  • Add Looks to a Dashboard

Setup

Before you click the Start Lab button

Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long lab resources will be made available to you.

This Qwiklabs 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 Looker for the duration of the lab.

What you need

To complete this lab, you need:

  • Access to a standard internet browser (Chrome browser recommended).

  • Time to complete the lab.

  1. When ready, click start-lab.png.

    A new panel will appear with the temporary credentials that you must use for this lab.

    If you need to pay for the lab, a pop-up will open for you to select your payment method.

  2. Note your lab credentials. You will use them to sign in to the Looker instance for this lab.

    looker-credentials.png

    If you use other credentials, you will get errors or incur charges.
  3. Click Open Looker.

  4. Enter the provided Username and Password in the Email and Password fields.

    looker-login-page-update.png

    Important: You must use the credentials from the Connection Details panel on this page. Do not use your Qwiklabs credentials. If you have your own Looker account, do not use it for this lab.
  5. Click Log In.

    After a successful login, you will see the Looker instance for this lab.

Working with Dimensions & Filters

In this section, you will find the number of flights that were cancelled each week in the year 2004 and display the resulting data points in a line chart.

  1. In the Looker navigation menu, click Explore.

  2. Under FAA, click Flights.

  3. Under Flight Details > Measures, click Cancelled Count.

  4. Under Flights > Dimensions > Depart Date, click Week.

  5. Within the Depart Date dimension group, click on the Filter buton next to the Date dimension.

  6. In the filter window, set the Depart Date filter to: is in the year 2004.

  7. Click Run.

  8. Click the arrow next to Visualization to expand the window.

Once the Visualization window has expanded, you can hover your cursor over the icons to identify the available options.

  1. Change visualization type to Line.

  2. Click on the settings gear icon for Visualization.

  3. Click Edit > Series.

  4. Under Colors > Collection, select your choice of theme/color.

  5. Under Point Style, click on Outline.

  6. Navigate to the Y menu of the visualization setting pane, scroll down to the bottom, and click on the Add Reference Line button. Ensure that the type is set to “Line” and that the value is set to “Average (Mean)”.

  7. Click on the gear icon for Visualization to close the settings.

  8. Click on the settings gear icon next to Run, and select Save as a Look.

  9. Title the Look “Cancelled Flight Count by Week in 2004”.

  10. Click Save.

first-look.png

Click Check my progress to verify the objective. Create your first Look.

Working with Filters

In this section, you will create a table visualization that shows the Count of Long Flights and the Total Distance flown by Carrier, but only for Carriers with a Percentage of Long Flights <= 25%.

  1. In the Looker navigation menu, click Explore.

  2. Under FAA, click Flights.

  3. Under Flights > Measures, click Count Long Flight.

  4. Under Flights > Measures, click Total Distance.

  5. Under Carriers > Dimensions, click Name.

  6. Under Flights > Measures, click on the Filter buton next to the Percentage Long Flights measure.

  7. In the filter window, set the filter to: is less than or equal to .25.

  8. Click Run.

  9. Click the arrow next to Visualization to expand the window.

Once the Visualization window has expanded, you can hover your cursor over the icons to identify the available options.

  1. Change visualization type to Table.

  2. Click on the settings gear icon for Visualization.

  3. Click Edit > Plot.

  4. Select “Gray” for the Table Theme.

  5. Toggle Show Row Numbers off.

  6. Click on the gear icon for Visualization to close the settings.

  7. Click on the settings gear icon next to Run, and select Save as a Look.

  8. Title the Look “Total Distance and Long Flight Count by Carrier”.

  9. Click Save.

look-2.png

Click Check my progress to verify the objective. Create your second Look.

Add Looks to a Dashboard

In this section, you will add your newly created Looks to a Dashboard and visualize them side-by-side.

  1. In the Looker navigation menu, click Browse.

  2. Select Developer's folder.

You should see the Looks you just created.

  1. Click the Cancelled Flight Count by Week in 2004 Look.

  2. Click on the settings gear icon next to Run, and select Save to Dashboard.

  3. Click New Dashboard.

  4. Enter a title for the new dashboard: Flights Data.

  5. Click Add Look to Dashboard.

You will now repeat the same process for the second Look you created.

  1. Navigate back to Developer's folder.

  2. Click the Total Distance and Long Flight Count by Carrier Look.

  3. Click on the settings gear icon next to Run, and select Save to Dashboard.

  4. Select the dashboard you previously created: Flights Data.

  5. Click Add Look to Dashboard.

Now that you've added both Looks to your new dashboard, you can view it.

  1. Navigate back to Developer's folder.

  2. Under Dashboard, select Flights Data.

Now you can play around with your interactive Looks inside of your newly created Dashboard!

Click Check my progress to verify the objective. Add Looks to a Dashboard.

Congratulations!

In this lab, you learned how to work with Dimensions and Filters to select and filter data, create visualizations based on sorted and filtered data, save Looks, and add Looks to a Dashboard.

Next Steps / Learn More

  • Learn more about creating Explores in the Looker documentation here

Google Cloud Training & Certification

...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 1, 2021
Lab Last Tested March 25, 2021

Copyright 2021 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.