[[["易于理解","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,["# Filter by multiple email addresses per row\n\n| **Prerequisites:** This solution relies on the following tasks in Looker Studio:\n|\n| - [Filtering by email address](/looker/docs/studio/filter-by-email-address)\n| - [Data blending](/looker/docs/studio/how-blends-work-in-looker-studio)\n| - [Creating data sources](/looker/docs/studio/add-data-to-a-report)\n| - [Adding charts to a report](/looker/docs/studio/tutorial-add-charts-to-your-report)\n\nFiltering by email address works by comparing the address of the logged in viewer to a field in your data source that contains valid email addresses. For each row in your data, the filter checks whether the viewer's email address matches the address in that row.\n\nConsider the following data:\n\nIf this data is filtered by email address, and a user `alan@example.com` views the filtered report, then this user sees only the data\n`abc` and `efg`. If another user, `mary@example.com`, views the same report, then this users sees the data `cde` and `ghi`.\n\nThis approach works if there is a one-to-one relationship between viewers and the data. But what if you also want the user `manager@example.com` to see the data? That is, you want many people to see the same rows of data (a many-to-many relationship.)\n\nBecause filtering by email works on only one address per row, you can't include a list of email addresses in your **Email** field. For example, including a list of email addresses in the **Email** field as follows won't work:\n\nSolution: Use data blending\n---------------------------\n\nYou can create a many-to-many relationship between email addresses and your data by blending a table of addresses with your data, using any common field as a join key.\n\n### Fruit stand example\n\nYou manage a produce company, and want show your sales representatives how they are performing at the various fruit stands they service. Multiple sales people can service multiple stands. To filter the data so your sales people only see their data, you could do the following:\n\n#### Step 1: Create an access control list table\n\nIn this step, you'll create an access control list (ACL) table that contains the email addresses of the authorized sales people, paired with a data field (a fruit stand name) that can be used as a join key in the blend.\n\n*Access control list (ACL) table*\n\nNote that the user `salesrep1@example.com` can see data for Fruit Stand A and Fruit Stand B, while the user `salesrep2@example.com` can see data for Fruit Stand A and Fruit Stand C.\n\n#### Step 2: Create the data table\n\nThe data table tracks the sales each representative made to each fruit stand.\n| **Note:** This table doesn't need to have the sales rep's email addresses, only the same values as in the join key (the fruit stand name). Also note the name of the join key field is not relevant: blending joins based on the data, not the field name.\n\n*Data table*\n\n#### Step 3: Apply the email filter to the ACL table\n\nTo apply the email filter to the ACL table, complete these steps:\n\n1. [Edit the data source](/looker/docs/studio/edit-a-data-source) for the ACL table.\n2. Click **FILTER BY EMAIL**.\n3. Select the **Sales Rep Email** field for the filter.\n\n#### Step 4: Blend the ACL table with the data table\n\nFinally, [blend the data table with the ACL table](/looker/docs/studio/create-edit-and-manage-blends). Since we want to effectively add the sales rep email as a column to the data table, we will start from the data table and then left-join the ACL table.\n\nWith no email filter applied, you'll see all the records for both sales representatives. However, with the email filter applied, blending the ACL table with the sales data table filters that data according to which sales person is viewing the report. Here's what each representative would see when they view the report:\n\n*Sales Rep 1 sees this:*\n\n*Sales Rep 2 sees this:*"]]