Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rjn
Employee
Employee

Load only Unique records

Hi,

I am trying to load only the unique rows from a QVD. The first record from duplicate records should load, 2nd or any following duplicate rows should be ignored.

below is the example I am trying, please help.

QVD  

NameID
ABC666
ABC444
XYZ111
KKK333

Output excepted:  

NameID
ABC666
XYZ111
KKK

333

Regards,

J. Ravichandra Kumar

7 Replies
sunny_talwar

Try this:

LOAD Name,

          First(ID) as ID

         FirstValue(ID) as ID

FROM QVD

Group By Name;

puttemans
Specialist
Specialist

Load Distinct?

LOAD DISTINCT

     Name,

     ID

FROM source;

Chanty4u
MVP
MVP

sample:

load *

distinct

FROM ur datasource;

tresesco
MVP
MVP

LOAD Name,

          FirstValue(ID) as ID

FROM QVD

Group By Name;

Anonymous
Not applicable

Load

     ID ,

     Name

from QVD

where not exists([Name)] ;

sunny_talwar

Hahahaha thanks for pointing that out tresesco‌‌, I realized it just after posting it

MayilVahanan

Hi

Try like this

LOAD Name,

          FirstValue(ID) as ID

FROM Yoursourcetable

Group By Name;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.