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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

duplicates

Is it possible to only display duplicate SSN out of a file?

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Load *,

rowno() as Sino,

autonumber(FacID & PatID & PatStatus & PatLName & PatFName & PatMI & Column1 & SSN & NsID & Floor & Room & Bed & BirthDate & AdmDate & DeathDate & DischargeDt) as New_field

From file.xlx;

if(Count(New Field >1, Your required field)

But QlikView will automatically identify duplicate entries. What is your actual requirement ?

Regards

KC

Best Regards,
KC

View solution in original post

11 Replies
sunny_talwar

Do you mean during the load you want to only include those SSN which are duplicates?

Try this:

Table:

LOAD *

FROM Source;

Right Join (Table)

LOAD SSN

Where Count > 1;

LOAD SSN,

          Count(SSN) as Count

Resident Table

Group By SSN;

jyothish8807
Master II
Master II

Hi Robert,

You can do this at UI level also.Load all the data, since you  may require it for other charts.

Create a straight chart.

Dimension: All the fields (Make sure suppress null value selected)

Expression:

If(Count(SSN)>1,SSN)

Regards

KC

Best Regards,
KC
Not applicable
Author

actually that is onlt the first check the next will be last name and first name and birthdate

Anonymous
Not applicable
Author

Robert it would be better if you put a sample data together

Not applicable
Author

jyothish8807
Master II
Master II

Hi Robert,

You can create a new field which will be the combination of all the field you want to check:

eg:

Load *,

last name & first name & birthdate & SSN  as NewField

from <>

Then at UI at expression,

if(Count(New Field >1, Your required field)

Regards

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Hi Robert,

Try making this expression and not dimension.

Regards

KC

Best Regards,
KC
Not applicable
Author

please see sample

jyothish8807
Master II
Master II

Load *,

rowno() as Sino,

autonumber(FacID & PatID & PatStatus & PatLName & PatFName & PatMI & Column1 & SSN & NsID & Floor & Room & Bed & BirthDate & AdmDate & DeathDate & DischargeDt) as New_field

From file.xlx;

if(Count(New Field >1, Your required field)

But QlikView will automatically identify duplicate entries. What is your actual requirement ?

Regards

KC

Best Regards,
KC