[[["易于理解","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,["# Create, edit, and manage blends\n\nYou can create blends automatically or manually:\n\nAutomatically blend selected charts\n-----------------------------------\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. Add charts based on the data sources you want to blend. For each chart, include the fields you want to include in the blend.\n3. Select the charts you want to include in the blend.\n 1. You can blend up to 5 charts.\n 2. Right-click on the selected charts, then click **Blend data**.\n\nLooker Studio generates a new chart that combines the fields from the selected charts. You can use that blended chart in your reports just like any other chart.\n\n### Example: create a ratio metric\n\nBlending 2 scorecards automatically creates a ratio metric, using the first chart you select as the numerator and the second chart as the denominator. For example, blending **Costs** and **Clicks** metrics automatically calculates your cost-per-click ratio:\n\n1. **Cost** scorecard. Select this chart first.\n2. **Clicks** scorecard. Select this chart second, then right click and select **Blend data**.\n3. Blended **Cost** / **Clicks** scorecard. Change the **Type** to **Currency** and adjust the **Decimal precision** to 4 places.\n\n[See a more complete example in the **Create a ratio field based on filtered metrics** tutorial.](/looker/docs/studio/tutorial-create-a-ratio-field-based-on-filtered-metrics)\n\nCreate blends manually\n----------------------\n\nThe two ways to create blends manually are:\n\n- Select a component on the page, then in the properties panel on the right, under **Data source** , click **+BLEND DATA**.\n- Open the **Resources \\\u003e Manage blends** menu, and in the bottom left, click **Add blend**.\n\nEdit blends you've already created\n----------------------------------\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. Select a chart based on a blend.\n3. Click the **Edit** icon for that chart's data source.\n\nYou can also edit blends by clicking the **Resource \\\u003e Manage blended data** menu option. Locate the blend in the list and click **EDIT**.\n\nAdd a table to the blend\n------------------------\n\n1. To the right of the rightmost table in the blend, click **Join another table**.\n2. Select a data source.\n3. Add fields to the table by clicking **Add dimension** or **Add metric** , or by dragging the field from the fields drawer. If the drawer is closed, open it by clicking the right arrow icon.\n4. To create a calculated field in the table, click **Add dimension** or **Add metric** , then click **+Create field**.\n\n | **Tip:** You can join tables based on calculated fields. This can be useful if the data you want to join on isn't perfectly aligned between the tables (for example, different capitalization or formatting used in a customer ID).\n5. Click the join configuration between the new table and the table to the left to set up the join between those tables.\n\nMove and remove tables\n----------------------\n\nTables you add to the blend always appear on the right. To reorder the tables in the blend:\n| **Important:** Moving tables could break your join conditions, requiring you to reconfigure the join. To restore the previous join condition, move the table back to its original position.\n\n1. Click the **More** icon for the table you want to move.\n2. Select **Shift left/right**.\n\nTo remove a table from the blend:\n| **Tip:** Removing a table has no effect on the data sources or on other blends in the report.\n\n1. Click the **More** icon for the table you want to remove.\n2. Select **Remove**.\n\nAdd and edit join configurations\n--------------------------------\n\nEach table in the blend is joined by a set of matching fields (the join conditions) and a join operator. To add or edit this configuration:\n\n1. Click the join configuration box between 2 tables.\n2. Select a join operator.\n3. Define the join condition by adding the dimensions that contain the data you want to join on. Note that the cross join operator doesn't use a join condition.\n4. Click **Save**.\n\n### Missing fields in join conditions\n\nA red box around the join configuration, or a pink **Missing** field in the join condition indicates that Looker Studio can't join your data with the selected dimensions:\n\nTo fix this, add the missing field to the table before configuring the join condition, or remove the missing field.\n\nSet a date range for a table in the blend\n-----------------------------------------\n\nYou have two options when setting a date range on a table in the blend:\n\n- **Auto**: Use the date range of the chart that gets its data from this blend.\n- **Custom**: Override the chart's date range with the range you select.\n\nApply a filter to a table in the blend\n--------------------------------------\n\nLimit the data contained in a table by applying a filter. You can create a new filter, or apply an existing filter to a table in the blend as long as that filter is based on fields that exist in the table.\n\nGet more in-depth information about [filters and date ranges in blends](/looker/docs/studio/blending-tips-and-advanced-concepts).\n\nCreate calculated fields in a blend\n-----------------------------------\n\nTables in a blend can include calculated fields. This can be particularly useful as a way of creating join conditions when the data isn't perfectly compatible between tables (for example, when the join fields contain differently formatted dates or capitalized strings). \n\n#### Show me how to add a calculated field\n\n1. Choose a table in the blend.\n2. Click **Add dimension** or **Add metric**.\n3. Click **CREATE FIELD**.\n4. Type in the formula in the editor window, then click **APPLY**.\n\n| **Note:** When you're creating calculated fields in a table in the blend, the formula can only reference fields found in that table. For example, a calculated field in Table 1 can't reference fields in Table 2.\n|\n| \u003cbr /\u003e\n|\n| \u003cbr /\u003e\n|\n| To create a calculated field based on fields from different data sources, add those fields to their respective tables in the blend, then [create a chart-specific calculated field](/looker/docs/studio/%20/looker-studio/answer/6299685#data-source-vs-chart-specific-calculated-fields).\n\nRename a table\n--------------\n\nClick a current table name, then type a new name.\n\nIf you have fields in the blend with duplicate names, you'll see the table name from which those fields are derived in the lists of available dimensions and metrics.\n\nRename a blend\n--------------\n\nOn the right, above the list of fields in the blend, click the current blend name, then type a new name.\n\nReconnect a table\n-----------------\n\nUnderneath the table name, click the drop-down menu and select a new data source for this table.\n| **Important:** Selecting a data source whose fields don't match the current data source for the table may break the blend configuration. You'll need to remove or replace any invalid fields.\n\nManage blended data\n-------------------\n\nUse the **Resource \\\u003e Manage blended data** menu to access all the blends contained in the current report. You can create new blends and edit, copy, or remove existing blends from this page."]]