简体   繁体   English

具有组合主键时如何在 Tableau 中循环

[英]How to for loop in Tableau when you have a combined primary key

Hi Everybody and thanks in advance to whom will answer my question: I think I need a for loop in tableau and looking for a working around;大家好,提前感谢谁会回答我的问题:我想我需要在画面中使用 for 循环并寻找解决方法;

my table has the following structure我的表具有以下结构

id, id_detail, result
1      1        fail
1      2        pass
1      3        pass
2      1        pass
2      2        pass
3      1        fail
3      2        pass
...
...

I need to assign to id=1 fail;我需要分配给 id=1 失败; id=2 pass; id=2 通过; id=3 fail id=3 失败

图片

do You have any suggestions?你有什么建议吗?

You may use the alphabetic order where pass is greater than fail您可以使用pass大于fail的字母顺序

create this calculated field创建此计算字段

{FIXED [Product ID]: MIN([Test Evaluation])}

and you'll get what you want你会得到你想要的

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 要计算每小时级别的登录时间,当您在 mysql 或 tableau 中有登录和注销时间戳时 - To calculate login hours on hourly level, when you have login and logout timestamp in mysql or tableau 如何在 TABLEAU 中组合创建三个条形图和折线图 - How to create three bar charts in grouped and line chart combined in TABLEAU Tableau:如果在 for 循环中,如何进行计数? - Tableau: how to make a count if in a for loop? 如何在 Tableau 中与没有 Tableau 帐户或 Tableau Reader 的客户共享工作簿 - How to share a workbook with client in Tableau who do not have Tableau account or tableau reader 如何阻止在 Tableau 中组合同一维度中的相似值? - How do I stop similar values in the same dimension from being combined in Tableau? 您如何在 Tableau 中按百分位数对数据进行分组,而忽略空值 - How do you group data by percentile in Tableau, ignoring nulls 在 Tableau 中,如何修改百分比小数位数的默认设置? - In Tableau, how do you modify the default setting for number of decimals of a percentage? 在tableau中,如何修改百分比标签的小数位数? - In tableau, how do you modify the number of decimals of a percentage label? 如何在 Tableau 中进行时间控制过滤仪表板上的多个工作表? - How to have time control in Tableau filter multiple worksheets on Dashboard? API 密钥与 Tableau 一起使用 - API Key use w/ Tableau
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM