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
rogerdea
Helper IV
Helper IV

Filter matrix including one duplicates, but excluding other dups

Hello

 

I am trying to filter a list for duplicate values in one column, but only when another column does not have a duplicate value.

 

So in my example data i would want to pull out "Ref"  112244 because there is a duplicate and the "IncidentID" is different on both "Ref".   

 

I would not want to include "Ref" 130130" because this Ref has the same "IncidentID".  Hopefully this makes sense?

 

dup example.PNG

How would you go about achieving this filtered list?

Thanks

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@rogerdea 

 

You may add a calculated column.

Column =
ISEMPTY (
    FILTER (
        'Table',
        'Table'[Ref] = EARLIER ( 'Table'[Ref] )
            && 'Table'[IncidentID] <> EARLIER ( 'Table'[IncidentID] )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@rogerdea 

 

You may add a calculated column.

Column =
ISEMPTY (
    FILTER (
        'Table',
        'Table'[Ref] = EARLIER ( 'Table'[Ref] )
            && 'Table'[IncidentID] <> EARLIER ( 'Table'[IncidentID] )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RobbeVL
Impactful Individual
Impactful Individual

Hi,


Just select both those columns ref & ID, and remove duplicates in PowerQuery.

You should get your desired result.

 

Robbe

Thanks i have used power query to de-duplicate the IncidentID field, but for the Ref field, it's the duplicates only i want to display (excluding unique records).  Is this also possible in power query?

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.