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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
New-here1
Contributor III
Contributor III

Remove duplicates

Hi,

I have 2 columns (Risk, Level) and need to remove duplicates from the risk column only. 

How can I do this is the DLscript please? 

Thank you

 

Labels (3)
3 Replies
Mohan_hitman
Contributor III
Contributor III

load 

distinct( fieldname)

New-here1
Contributor III
Contributor III
Author

Thanks @Mohan_hitman but I have tried this and it just isn't working for me. Anything else I could try? Thank you

Mohan_hitman
Contributor III
Contributor III

 LOAD Distinct will remove duplicate identical records, but will not remove duplicate values in one field if they differ in others. To exclude duplicate of a single field, you could use this pattern:

LOAD *
Where Not(Exists(KeyField));
SQL SELECT KeyField,
...
FROM ...;