简体   繁体   中英

Tableau Calculation with a Filter in place

I'm trying to get the count of calls received by an individuals, both initial answer and any possible transferred over by another person.

My workbook has a filter based on the individual who first answers the phone. Now I need to add in any calls that were transferred over. These calls are usually answered by another individual.

This is what I would like to see

John: #calls =3 | #calls Transferred to =1

Where the data would show this:

Incoming  | Transferred to
John      | James
John      | NUll
John      | NUll
James     | John

Does anybody have a way to get in the last call to be attribute it to John with the filter in place? My filter of John would give me the three calls, but would remove the transferred call.

Try creating two calculated fields using the following formulas and then use them as filters.

Filter - John

if contains([Incoming], "John") then "John"
ELSEif
CONTAINS([Transferred to], "John") then "John"
END

Filter - James

if contains([Incoming], "James") then "James"
ELSEif
CONTAINS([Transferred to], "James") then "James"
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