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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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