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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

How to handle Duplicate records in Qlikview ??

Hey,

  1. How to handle Duplicate records in Qlikview ??

Thanks

8 Replies
crusader_
Partner - Specialist
Partner - Specialist

Hi,

LOAD Distinct ....

I suppose.

Hope this helps.

Andrei

rajeshvaswani77
Specialist III
Specialist III

Hi,

You can use Rowno() function to make the duplicate records unique in case that's what you are looking for.

Example

Load *, RecNo( ), RowNo( ) from tablename;

thanks,

Rajesh Vaswani

richard_pearce6
Partner - Specialist
Partner - Specialist

Interview question?

Distinct would be the obvious. You have to be careful when joining tables which don't have a distinct key as they will cause duplicate rows in the original table.

Trick is to keep checking your data after everything you change in the script.

Rcihard

QlikCentral.com

nikhilgarg
Specialist II
Specialist II
Author

HEy,

Cann't i use Distinct keyword ?? And what is this RecNo( ), RowNo( ) used for ??

What does this RecNo( ), RowNo( ) returns ??

Thanks

crusader_
Partner - Specialist
Partner - Specialist

ychaitanya
Creator III
Creator III

Use Distinct(Field) during load

jagan
Partner - Champion III
Partner - Champion III

Hi,

If you want to remove duplicate then use Duplicate keyword like below

LOAD DISTINCT

*

FROM Table1;

Data:

LOAD DISTINCT

A

FROM Table1

WHERE NOT EXISTS(A);

Regards,

Jagan.

nikhilgarg
Specialist II
Specialist II
Author

HEy,

How does RecNo() and RowNo() helps in handling dupliacte records ??