Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Collecting attributes of a field...

Hi,

I have a question:  I'm trying to count the number of distinct values and the number of duplicates within a field within a straight table.  I thought that the expression "COUNT([DISTINCT]field_name)" would count the number of distinct values, but I didn't get a result when I reloaded the data. Nor did I get a result for counting the duplicates within a field as well.

So as an example, if FIELD1 contains the following values:

2

2

3

4

5

5

6

6

then I should have 5 distinct values (2,3,4,5, and 6) and 3 duplicates (3, 5, and 6).

Any help is appreciated.

Thanks,

Torino

10 Replies
Not applicable
Author

That's it!  I just made it more complicated, thinking there was some singular function that could do that.  Thanks for the help!.