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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
qliklearnervir
Creator
Creator

duplicate removal

Hi,

we have some data  like below;

ID  Email

1   abc.email.com

2   abc.email.com

3    xyz.email.com

data having duplicate emailids, that i want to remove....kindly suggest the possible ways in script.

Labels (1)
2 Replies
MK_QSL
MVP
MVP

temp:

Load * Inline

[

  ID,  Email

  1,   abc.email.com

  2,   abc.email.com

  3,   xyz.email.com

];

Left Join(temp)

Load ID, Email, if(Email=Previous(Email),1,0) as Flag Resident temp

order by ID;

NoConcatenate

Final:

Load ID, Email Resident temp

Where Flag = 0;

Drop Table temp;

Digvijay_Singh
MVP
MVP

table:

load * inline [

ID,  Email

1,   abc.email.com

2,   abc.email.com

3 ,   xyz.email.com ];

NoConcatenate

Load min(ID) as ID, Email resident table group by Email;

drop table table;