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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kattlees
Post Patron
Post Patron

Only Show Duplicates

If I have this data - how do I get a table that will only SHOW Duplicates

 

Guest ID      Guest                   Start Date             End Date          MRNumber

123456       Sue Smith             2/1/18                     2/3/18            887799

5423160       Sue Smith            2/5/18                     2/5/18            887799

654321        Jill Jones              3/8/18                     3/12/18          998877

759845        Bill Bradly             2/8/18                    2/8/18             665577

 

I would only want the two Sue Smith rows to show up. Possiblity there could be 3 or 4 entries for the same person so would need all of them to show up.

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@kattlees

 

Hi, you can use this calculated column to Mark the duplicates.

 

Duplicate =
IF (
    COUNTROWS ( FILTER ( Table1; Table1[GUEST] = EARLIER ( Table1[GUEST] ) ) )
        > 1;
    "YES";
    "NO"
)

The next Step will be apply a filter in the visual.

 

Regards

Victor




Lima - Peru

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Doesn't the semi-colon vs comma issue have to do with the language setup of your computer?

qamarulhassan
Regular Visitor

@Vvelarde  Thanks for the solution. I was looking for this solution and it helps me. 😊

Vvelarde
Community Champion
Community Champion

@kattlees

 

Hi, you can use this calculated column to Mark the duplicates.

 

Duplicate =
IF (
    COUNTROWS ( FILTER ( Table1; Table1[GUEST] = EARLIER ( Table1[GUEST] ) ) )
        > 1;
    "YES";
    "NO"
)

The next Step will be apply a filter in the visual.

 

Regards

Victor




Lima - Peru

Solution DOES NOT WORK> can't use semi-colons. Only Commas. Also, get an error on the 

EARLIER ( Table1[GUEST] )

Piece.


Maybe ease up on the intensity/outrage of your reply a bit? I'd really hate to see people being discouraged from participating due to getting yelled at if they make a mistake. 

Note: This only worked for me when I used commas and not semi-colons.

Thanks

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.