Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How To Display "duplicates" only in a List Box?

Hello:  I have the following Excel source:

DogIdDogName
1Rex
2Jack
3Jack
4Ginger
5Clancy
6Casey
7Casey
8Tommy

and the following script:

[DOGNAMES]:

LOAD DogId,

     DogName

   

FROM

(ooxml, embedded labels, table is Sheet1);

and the following expression in a List Box:

=aggr(Only({1<DogName={"=Count(DogName)>1"}>}DogName), DogName

This does display Dog Names that have been duplicated.  But it also displays the DogId of dogs that do not have duplicate names.  My question is, "is it possible to display only the duplicates" ? 

Thanks very much

David

14 Replies
nagaiank
Specialist III
Specialist III

Capture.PNG.png

It shows only two entries as seen above.

maxgro
MVP
MVP

=if(aggr(count(DogName),DogName)>1,DogName)

1.png

Anonymous
Not applicable
Author

Hi NagaianK:

Thanks very much.  I had a couple of unnecessary steps in my work.  When I took a closer look at your minimalist solution it worked perfectly.

Best regards

David

MK_QSL
MVP
MVP

Believe me,  everyone has given correct answer but may be there was some mistake happening your end.

Never mind,  happy learning and Qliking!

Anonymous
Not applicable
Author

Hi Manish:

Yes, your solution is correct.  I did have a couple of "extra" things going on and once I simplified it all everything works.  I am so very grateful to the QlikView Community for their help.  I am fast-becoming a huge QlikView fan and want to learn as much as I can about it.  Your insights and those of the other respondents are a big part of that.

Thanks

David