简体   繁体   中英

How to count the repetitive customers in Tableau?

[How to count the repetitive customers?][1]

Client_ID | Created_At(Date Stamp)
1         | 27-07-2020  10:30:08
2         | 04-10-2020  09:20:21
3         | 28-07-2020  18:55:25
1         | 28-07-2020  06:45:14

Include a calculated field

{FIXED [client_id]: COUNT([client_id])}>1

TRUE will indicate a returning customer while FALSE indicate one time customer only.

在此处输入图像描述

data used

在此处输入图像描述

NOTE COUNT([client_id]) > 1 will also do the similar job, but will require that client_id is added in the view. FIXED will eliminate the need of adding client-id in the view.

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