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: 
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

Labels (1)
7 Replies
sunny_talwar
MVP
MVP

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;

tresB
Champion III
Champion III

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
MVP
MVP

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

MayilVahanan
MVP
MVP

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.