Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
binayjethwa
Helper IV
Helper IV

Identify Duplicates based on single field

Hi ,

 

Is there any way we can identify duplicates based on single column, Although the values on different colums are different for same Person. Please check on below data.

 

Here employee Binay is having duplicates , since he is available in India and Malaysia although his other fields are different i.e differnt projects he is working.

 

So i need a column to identify whether he is working on multiple projects and if he is return Yes, else NO , the unique identifier is Emp no. Can you please help on how to resolve this.

 

 

Emp no Name country phone emailprojectValidation
121BinayIndia11221122asd@asd.comAYes
121BinayMalaysia33321131asd@ad.comBYes
111jethwasingapore23332add@aaa.comCYes
111jethwaindia22222aaaa@ase.comDYes
112dfdthailand3331ad2@sa.comDNo
114sdfIndonesia33323@d.comDNo 

 

Thanks,

Binay

1 ACCEPTED SOLUTION
mpraka
Advocate I
Advocate I

Hi,

 

Yes or No = if(CALCULATE(COUNT('Project Duplicate'[ID]),ALLEXCEPT('Project Duplicate','Project Duplicate'[ID]))>1,"Yes","No")
 
Duplicate Project.JPG

Regards,

Prakash M

View solution in original post

2 REPLIES 2
Nithinr
Resolver III
Resolver III

If you want to use Calculated column, Try below Dax

Validation = 
Var Emp = [Emp No]
var counts = CALCULATE(
    COUNTROWS(EmployeeTable),
    ALL(EmployeeTable),
    EmployeeTable[Emp No] = Emp
)
RETURN
IF(counts>1,"YES","NO")
mpraka
Advocate I
Advocate I

Hi,

 

Yes or No = if(CALCULATE(COUNT('Project Duplicate'[ID]),ALLEXCEPT('Project Duplicate','Project Duplicate'[ID]))>1,"Yes","No")
 
Duplicate Project.JPG

Regards,

Prakash M

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.