Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

Qlik Sense Data Load - Remove duplicate records

Hi - I have the following in my data load editor:

RPSTATUSDATA03:
Noconcatenate
Load *
RESIDENT RPQUISITIONSTATUSDATA02;

I need to remove any records in which there are duplicates.

The field which determines this is the RPNUMMAT field.

If the RPNUMMAT is the same then I do not need the record in RPSTATUSDATA03.

Any thoughts on how I can achieve this process ?

Thanks so much  - Jerry

 

 

 

1 Solution

Accepted Solutions
rubenmarin

Hi, you can use Exists() to check already loaded values:

RPSTATUSDATA03:
Noconcatenate
Load *,
  RPNUMMAT as chkRPNUMMAT 
RESIDENT RPQUISITIONSTATUSDATA02
Where not exists('chkRPNUMMAT ',RPNUMMAT);

DROP Field chkRPNUMMAT;

As all field have been loaded in RPQUISITIONSTATUSDATA02, you have to cahnge field name to check those values loaded in RPSTATUSDATA03.

View solution in original post

3 Replies
rubenmarin

Hi, you can use Exists() to check already loaded values:

RPSTATUSDATA03:
Noconcatenate
Load *,
  RPNUMMAT as chkRPNUMMAT 
RESIDENT RPQUISITIONSTATUSDATA02
Where not exists('chkRPNUMMAT ',RPNUMMAT);

DROP Field chkRPNUMMAT;

As all field have been loaded in RPQUISITIONSTATUSDATA02, you have to cahnge field name to check those values loaded in RPSTATUSDATA03.

jerryr125
Creator III
Creator III
Author

Hi- I finally had the opportunity to try the above - thank you very much - works perfectly !! 

- Jerry

Dalton_Ruer
Support
Support

Have you tried LOAD DISTINCT?
Refer to the help documentation here: https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegu...