[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Quickstart: Build a Look with sample data\n\nBuild a Look with sample data\n=============================\n\nLearn how to query and visualize data in Looker and to save your query results as a [Look](/looker/docs/saving-and-editing-looks) that you can share and reuse.\n\nThis quickstart guides you through building a Look on your Looker (Google Cloud core) instance. You'll use sample data from the prebuilt **Intermediate Ecommerce** Explore to create the following table chart, and then you'll save the chart as a Look.\n\nThe table chart that you'll create will display weekly shipping trends, using conditional formatting (such as a red background) to highlight potential delays (in this case, weeks where more than 200 order items took over two days to be delivered). The following table is an example of the query results that you'll use to build your Look:\n\nBefore you begin\n----------------\n\nTo follow along with this quickstart, you'll need access to a Looker (Google Cloud core) instance that includes the [sample LookML project](/looker/docs/looker-core-sample-project). The sample project includes the prebuilt **Intermediate Ecommerce** Explore that is used in this quickstart.\n| **Note:** The **Intermediate Ecommerce** Explore is found in the **Z) Sample LookML** model. This model name may differ on your Looker instance.\n\nYou'll also need to have a the following [Looker permissions](/looker/docs/admin-panel-users-roles#permissions_list) on your Looker (Google Cloud core) instance (or a Looker role that includes these permissions):\n\n- `access_data`: Access the sample data in the **Intermediate Ecommerce** Explore.\n- `explore`: Access [the Explore page](/looker/docs/viewing-and-interacting-with-explores#the_explore_page) and run queries in the **Intermediate Ecommerce** Explore.\n- `save_looks` (and its parent permission, `save_content`): Save the visualization as a Look.\n- `see_looks`: View the Look that you'll create in this quickstart.\n\n| **Note:** If you plan to use this Look in a dashboard, you may also need additional permissions, such as `save_dashboards` and `see_user_dashboards`, as described in the [Build a dashboard with sample data](/looker/docs/looker-core-create-dashboard-quickstart) quickstart.\n\nNavigate to the Explore\n-----------------------\n\nTo navigate to the **Intermediate Ecommerce** Explore, follow these steps:\n\n1. In Looker, click **Main menu** menu to expand the main navigation menu.\n2. In the main navigation menu, select **Explore**.\n3. Expand **Z) Sample LookML** (or the corresponding model name on your instance) to expand the list of Explores.\n4. Click **2) Intermediate Ecommerce** Explore to open the Explore page.\n\nSelect fields and pivot data\n----------------------------\n\nTo build the query, follow these steps:\n\n1. In the field picker, expand the **Order Items** section.\n2. In the **Dimensions** section of the field picker, expand **Created At Date** , and then hold your cursor over the **Week** field and select the **Pivot data** icon to display the weeks as columns in the results table.\n3. Expand **Other Dates** , and then select the **Shipped to Delivered Days** field to show how long it took each order to be delivered after it was shipped.\n4. In the **Measures** section of the field picker, select the **# of Order Items** field to show the total number of order items for each combination of week and shipping duration.\n\nAdd filters and run the query\n-----------------------------\n\nNext, you will add filters on the following fields to refine the query results:\n\n- **Created At Week** : The filter on this field will have the condition `is in the last 8 weeks`, which includes only data from the past 8 weeks.\n- **Shipped to Delivered Days** :\n - The first filter on this field will have the condition `is not null`, which excludes null values.\n - The second filter on this field will have the condition `is \u003e2`, which includes only shipping durations that are longer than 2 days.\n\nTo apply these filters to your query, follow these steps:\n\n1. For each filter, in the **Filters** section of the Explore page, click **+ Filter** to open the **Add Filter** window.\n2. In the **Add Filter** window, create each filter by selecting the appropriate condition and adding filter values as needed:\n - For the first filter, select the **Created At Week** field and choose the **is in the last** condition. In the text input field, enter the value `8`, and select **weeks** from the list of timeframes.\n - For the next filter, select the **Shipped to Delivered Days** field and choose the **is not null** condition.\n - For the final filter, select the **Shipped to Delivered Days** field. For the filter condition, select **is \\\u003e** . In the text input field, enter the value `2`.\n3. Click **Run** to run the query and display the results.\n\nThe **Data** section of the Explore now shows the number of order items for each shipping duration over the past eight weeks.\n\nCustomize the visualization\n---------------------------\n\nBefore saving the visualization as a Look, change the default chart type to a table chart and apply conditional formatting to highlight potential shipping delays. To make these changes, follow these steps:\n\n1. In the **Visualization** section of the Explore page, click the **Visualizations** bar to open the visualization editor.\n2. In the **Visualization** menu, select **Table** to display the query results as a table chart.\n3. Click **Edit** tune to open the visualization editor.\n4. In the **Series** tab, expand **Order Items # of Items** and disable the [**Cell Visualization** option](/looker/docs/table-options#cell_visualization).\n5. In the **Formatting** tab of the visualization editor, confirm that the [**Enable conditional formatting** option](/looker/docs/table-options#enable_conditional_formatting) is enabled.\n6. In the **Rules** section of the **Formatting** tab, if there is an existing conditional formatting rule, replace the default conditions with the following conditions. If there are no rules, click **Add a Rule** to create a new custom formatting rule and apply the following conditions.\n\n - In the **Apply to** section, choose **Select fields...** and enter the **Order Items # of Order Items** field in the text input field.\n - In the **Format** section, choose the **If value is greater than** condition and enter the value `200`.\n - In the **Styles** section, select the existing color swatch in the **Background color** section, and then select a background color (in this example, select the color red).\n7. Click **Add Rule** to save the conditional formatting rule.\n\nNow that you've customized the visualization and applied conditional formatting, Looker highlights cells in the table chart where more than 200 order items took more than two days to be delivered.\n\nSave the visualization as a Look\n--------------------------------\n\nTo save the table chart as a Look, follow these steps:\n\n1. Click the **Explore actions** gear icon settings in the Explore header.\n2. Select **Save...** , and then select **As a Look**.\n3. In the **Save Look** window, enter a title for the Look in the **Title** field.\n4. In the **Folder** section, choose a folder to save the Look to.\n5. Click **Save** to save the Look to that folder, or click **Save \\& View Look** to save and immediately open the Look.\n\nNow that you've saved the visualization as a Look, you can access it again for further analysis, share it with others, or incorporate it into dashboards for broader visibility. You can also use the Look in a dashboard, as described in the [Build a dashboard with sample data](/looker/docs/looker-core-create-dashboard-quickstart).\n\nWhat's next\n-----------\n\n- [Quickstart: Build a dashboard with sample data](/looker/docs/looker-core-create-dashboard-quickstart)\n- [Creating and editing Explores](/looker/docs/creating-and-editing-explores)\n- [Filtering and limiting data](/looker/docs/filtering-and-limiting)\n- [Creating user-defined dashboards](/looker/docs/creating-user-defined-dashboards)\n- [Sharing data](/looker/docs/sharing-data)"]]