简体   繁体   中英

Tableau(Calculated Field)

Tableau 示例数据

I have uploaded the sample data above.

So in Tableau, I want to create calculated field. For example, if the ID is same and that ID has already complete the calls, then the another id with the same id should be named complete too, so the final output should be:

在此处输入图片说明

I have 1000 of id's like that. Any help would be appreciated. If you don't understand the questions, let me know. Thanks in advance!

One solution is to create a calculated field. Convert the Complete and Incomplete values to a number and take the max per ID.

[CallStatus]

IF {FIXED [ID]:MAX(IF [Calls] = "Complete" THEN 1 ELSE 0 END)} = 1 THEN "Complete" ELSE "Incomplete" END

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM