Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
krishna20
Specialist II
Specialist II

How to Remove Duplicate Names

Hi Folks,

I'm having Employee_ID which is Identical but Employee_Name getting duplicates from Database itself.I need to restrict it in the Qlikview script .how can we achieve it? Please anyone suggest me. Please find the attached image.

Regards

Krishna

14 Replies
sunny_talwar

May be try loading the Employee_ID with DISTINCT keyword

jsingh71
Partner - Specialist
Partner - Specialist

share some sample data.

Not applicable

Hi,

Try to find frequency of your EMP_ID (97) if it is giving 2 then load distinct data it will work...

krishna20
Specialist II
Specialist II
Author

Hi All,

Thank you for valuable replies. I tried using Distinct keyword in different Scenario's but no use. I have tried at PERSON_ID and EMPLOYEE_ID and EMPLOYEE_NAME.

Employee name is still getting duplicates.If you observe that in the app or above attached image. There is name difference in the both. Please find the attached app.

Regards

Krishna

Not applicable

Hi,

restrict it with below clause if only single name giving trouble,

FROM

(qvd) where [Employee Full Name]<>'Ray, Ms. Amy (Amy)';

jonathandienst
Partner - Champion III
Partner - Champion III

You have not explained what you want to do with the duplicates. You could take the first instance of the ID and ignore subsequent duplicates, you could use a date field (if one exists) to choose the most recent, you could ignore the ID and just take the names, you could exception report the duplicates on an integrity report, etc.

So what do you want to do?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable

Hi

Use DISTINCT keyword or first sorted value

Thanks

Kushal_Chawda

There is multiple employees name for single Employee ID which is not possible. Check your mapping.

kavita25
Partner - Specialist
Partner - Specialist

What is the expected result instead of 8??

Regards,

Kavita