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: 
antonybi
Creator
Creator

Pls Suggest

Hi All,

I need to show only duplicate records in the data model

how do we accomplish this??

Kindly help.

1 Solution

Accepted Solutions
sunny_talwar

Try this

temp:

LOAD * Inline [

F1, F2

1, a

2, b

2, b

3, c

4, d

4, d

5, e

6, f

6, f

7, g

8, h

8, h

9, i

10, j

10, j

];

Right Join (temp)

LOAD F1,

F2

Where Count > 1;

LOAD F1,

F2,

Count(F1&F2) as Count

Resident temp

Group By F1, F2;

View solution in original post

9 Replies
sunny_talwar

So are you looking to see all those F1 which repeat more than one? or are you looking for F1&F2 than repeat more than once?

madhumitha
Creator
Creator

Hi Antony,

Please check the attached file.

Hope it helps.

antonybi
Creator
Creator
Author

Yes Sunny am just taking dummy data to get the logic.

In my actual data it is completely different.

Can you suggest me on this??

sunny_talwar

But what is the final output you are looking to get?

antonybi
Creator
Creator
Author

Only it has to show duplicate records

In data model table should be like this

1.PNG

madhumitha
Creator
Creator

Hi Antony,

Did you check my attachment?

sunny_talwar

Try this

temp:

LOAD * Inline [

F1, F2

1, a

2, b

2, b

3, c

4, d

4, d

5, e

6, f

6, f

7, g

8, h

8, h

9, i

10, j

10, j

];

Right Join (temp)

LOAD F1,

F2

Where Count > 1;

LOAD F1,

F2,

Count(F1&F2) as Count

Resident temp

Group By F1, F2;

antonybi
Creator
Creator
Author

No am unable to open that you've shared as am using PE

madhumitha
Creator
Creator

temp:
LOAD* Inline
[
F1, F2
1, a
2, b
2, b
3, c
4, d
4, d
5, e
6, f
6, f
7, g
8, h
8, h
9, i
10, j
10, j
]
;

Temp1:
NoConcatenate
Load
*
where Count >1;

Load
F1,F2,
count(F1&F2) as Count
Resident
temp
group by
F1,F2;

drop Table temp;