Quantcast
Viewing all articles
Browse latest Browse all 217263

Generate calculated table containing rows where count of a value is greater 0 for each user

I know this is easy, but I can't see to find the right combination of steps to do what I'm trying to do.

 

I currently have TABLE_ALL that contains three columns (for example sake):  user(int) contact_method(varchar) confirmed(True or False)

 

In this table, a user might have 0, 1, 2, or 3 confirmed contact methods.

 

I need to build a calcualted table - TABLE_NO_CONFIRMED -  that contains all users that have 0 (none) confirmed contact methods.

 

I've begun chipping away by trying to simply filter on a count - but I'm missing how to roll up the count for each user. Here is my attempt that I know is incorrect, but at least it illiustrates my novice approach. Thanks for any input on how to do this:

 

(my approach which is of course not working): TABLE_NO_CONFIRMED = FILTER(‘db TABLE_A’,COUNTAX('db TABLE_A',COUNTAX('db TABLE_A','db TABLE_A'[confirmed] = TRUE())))

 

 


Viewing all articles
Browse latest Browse all 217263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>