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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

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" )

Regards
Zubair

Please try my custom visuals

View solution in original post

@Anonymous

 

Please see attached file as well

 

dupee.png


Regards
Zubair

Please try my custom visuals

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

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" )

Regards
Zubair

Please try my custom visuals

@Anonymous

 

Please see attached file as well

 

dupee.png


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Thank you so much! This helps!!!  🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.