cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ogureisuo Regular Visitor
Regular Visitor

Display duplicates on several columns

Hello everyone,

 

is there a way where i can display all duplicates on several columns?

 

Example:

 

NameAddress1Address2
ABACA
AABACB
ABBBCA
ACBCCC
AABDCD
ADBECE
AEBACF
AFBF

CG

 

 

 

Expected Result:

 

NameAddress1Address2
ABACA
AABACB
ABBBCA
AABDCD
AEBACF

 

I want to show the columns with duplicates. Unique records were removed.

Is this possible? Many thanks!!

 

Duplicate.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Display duplicates on several columns

@ogureisuo

 

You can use this calculated column to check for the Duplicates

 

Check =
VAR Cond1 =
    IF (
        CALCULATE ( COUNTROWS ( Table1 ), ALLEXCEPT ( Table1, Table1[Name] ) ) = 1,
        1
    )
VAR Cond2 =
    IF (
        CALCULATE ( COUNTROWS ( Table1 ), ALLEXCEPT ( Table1, Table1[Address1] ) ) = 1,
        1
    )
VAR Cond3 =
    IF (
        CALCULATE ( COUNTROWS ( Table1 ), ALLEXCEPT ( Table1, Table1[Address2] ) ) = 1,
        1
    )
RETURN
    IF ( Cond1 = 1 && Cond2 = 1 && Cond3 = 1, BLANK (), "Duplicates" )
Super User
Super User

Re: Display duplicates on several columns

@ogureisuo

 

Please see attached file as well

 

dupee.png

3 REPLIES 3
Super User
Super User

Re: Display duplicates on several columns

@ogureisuo

 

You can use this calculated column to check for the Duplicates

 

Check =
VAR Cond1 =
    IF (
        CALCULATE ( COUNTROWS ( Table1 ), ALLEXCEPT ( Table1, Table1[Name] ) ) = 1,
        1
    )
VAR Cond2 =
    IF (
        CALCULATE ( COUNTROWS ( Table1 ), ALLEXCEPT ( Table1, Table1[Address1] ) ) = 1,
        1
    )
VAR Cond3 =
    IF (
        CALCULATE ( COUNTROWS ( Table1 ), ALLEXCEPT ( Table1, Table1[Address2] ) ) = 1,
        1
    )
RETURN
    IF ( Cond1 = 1 && Cond2 = 1 && Cond3 = 1, BLANK (), "Duplicates" )
Super User
Super User

Re: Display duplicates on several columns

@ogureisuo

 

Please see attached file as well

 

dupee.png

ogureisuo Regular Visitor
Regular Visitor

Re: Display duplicates on several columns

Thank you so much! This helps!!!  Smiley Happy