cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Filter matrix including one duplicates, but excluding other dups

@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
Highlighted
Super User I
Super User I

Re: Filter matrix including one duplicates, but excluding other dups

Hi,


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

You should get your desired result.

 

Robbe

Highlighted
Helper II
Helper II

Re: Filter matrix including one duplicates, but excluding other dups

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?

Highlighted
Community Support
Community Support

Re: Filter matrix including one duplicates, but excluding other dups

@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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors