Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count Duplicate Id's only?


Hi ,

I want to count only duplicate id's.

Ex:

id

1

2

3

4

5

1

2

1

3

2.

In above 1,2,3 id are repeating so my output count should be:3 

How we can calculate????

10 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Sampath,

Use Group by in the Load statement

Data:

LOAD

ID,

*

FROM Table;

INNER JOIN(Data)

LOAD

*

WHERE IDCount > 1;

LOAD

ID,

Count(DISTINCT ID) AS IDCount

RESIDENT Data

GROUP BY ID;

Hope this helps you.

Regards,

Jagan.