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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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