Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sunil_Kenth
Former Employee
Former Employee

Count unique values

Hi,

I need some help with an expression.

How can i count the number of unique and not unique email addresses in my data.  The email field is called EMAIL.

Thanks for your help.

Sunil

1 Solution

Accepted Solutions
its_anandrjs

Hi,

You want to count unique values so for that you need to count by =Count(Distinct EMAIL) which gives count of unique values. and for duplicate values you need to count how much time it is repeated like =Count( EMAIL).

Regards,

Anand

View solution in original post

3 Replies
Not applicable

Hi,

   use "Count" aggr function with "Distinct" for respective field.

-Jai

its_anandrjs

Hi,

You want to count unique values so for that you need to count by =Count(Distinct EMAIL) which gives count of unique values. and for duplicate values you need to count how much time it is repeated like =Count( EMAIL).

Regards,

Anand

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Try count(distinct EMAIL) for unique Mail ID

    and

    Count(Email) for over all Mail ID

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!