【发布时间】:2017-05-03 16:33:30
【问题描述】:
我们有一个示例工作表,处理一些数据源,例如示例超市(例如清酒)
我们使用另一个数据源,例如 user_details,其中包含类似的数据
<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>Allow</th>
</tr>
<tr>
<td>R4****3</td>
<td>Vivek</td>
<td>Y</td>
</tr>
<tr>
<td>F5****8</td>
<td>Srinivasan</td>
<td>N</td>
</tr>
</table>
</body>
</html>
我们将此 user_details 数据与超市数据混合以过滤不允许的用户,通过数据混合和添加计算字段,该字段具有公式:
IF [ID] == USERNAME() AND [Allow] == 'Y'
THEN 1
ELSE 0
END
因此,当我们切换到 Vivek 时,我可以在 tableau desktop 中看到数据。
但是当我在桌面桌面切换到 Srinivasan 时,我们看不到数据。
当将这些更改推送到服务器时,在正常模式下它可以正常工作,但是当我们清除所有浏览器缓存和 cookie,并使用 tableau URL 参数 -> “?:embed=y”时,视图不会为用户 Vivek。
https://community.tableau.com/message/612072#612072
Attached is the workbook and issue detail for reference here
任何帮助将不胜感激。
【问题讨论】:
标签: tableau-api