looker-studio - 如何在 Data Studio 中为多个最终用户启用 "Filter by Email"?

标签 looker-studio

将这个问题和答案添加到 Stack Overflow,因为我一直在寻找答案,但没有结果,并与 Minhaz Kazi @ Google 合作找到了一种方法。谢谢米哈兹!

我想在报告的数据源上启用“按电子邮件过滤”,以仅允许某些用户查看报告。

这对于单个用户来说很容易实现,但如果我希望多个人能够访问同一个过滤器怎么办? (即 Bill 和 Ted 都为 Evil Corp. 工作,我希望他们在查看报告时都能自动看到 Evil Corp. 的数据,并且只能看到 Evil Corp. 的数据)

最佳答案

解决方案是创建一个表,其中为每个用户及其组织包含一行,如下所示:

org    email
org1   <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="54363d38381431223d38373b26247a373b39" rel="noreferrer noopener nofollow">[email protected]</a>
org1   <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="027667664267746b6e616d70722c616d6f" rel="noreferrer noopener nofollow">[email protected]</a>
org2   <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e747176705e70716a6d717b6877727d716c6e307d7173" rel="noreferrer noopener nofollow">[email protected]</a>
org3   <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="680d05010411280f07070c0b071a18460b0705" rel="noreferrer noopener nofollow">[email protected]</a>

然后,使用此表在数据工作室中创建数据源并启用“按电子邮件过滤”

最后,在报告中使用主数据和此用户查找表创建合并数据源。对我来说,让用户查找作为左侧源,然后使用组织作为合并中的连接键,效果非常好。

现在,当 Bill 或 Ted 查看报告时,他们将看到 Evil Corp 的数据,但只能看到他们的组织。

希望这对某人有帮助!

关于looker-studio - 如何在 Data Studio 中为多个最终用户启用 "Filter by Email"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61194251/

相关文章:

looker-studio - 如何在 Google Studio 数据中搜索表格

Google Data Studio 中的 REGEX RE2 提取 - REGEX_EXTRACT

looker-studio - 计算字段 Data Studio 公式无效 - 输入表达式无效。 - 无法解析CASE语句

google-analytics - 如何在Google Data Studio中计算年龄组

looker-studio - 有没有办法显示 Data Studio 报告中的数据上次刷新的时间?

looker-studio - 如何限制Google Data Studio中的用户数据?

google-bigquery - 未找到 Datastudio 列名称

postgresql - 如何将 Google Data Studio 连接到 AWS RDS Postgres 实例?

javascript - Google Data Studio 连接器中的 UrlFetchApp 异常

looker-studio - GCP 数据存储 : how to show ratio in Scorecard