简体   繁体   中英

Tableau formula Help (new user v repeat user etc)

Hi I am trying to figure out how to write the proper calculation.

My objective is to determine news versus repeat users by month using an email address as the identifier.

If an email address occurs once they would be counted one time as a new customer. If their email address occurs a second time and a third or fourth etc, I would want them to be counted as a repeat customer one time only for each month they purchased.

Thanks

Here is a calculated field that should solve this. It will require that you include the Month and User fields in your view. I added Month to my columns and User` to my rows and it worked fine.

 IF COUNTD([email]) > 1 THEN "Repeat" 
 ELSE "New"
 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