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
pauliduplooy
Regular Visitor

How to filter a table to only show where a specific entry (a string) appears more than once?

I have the following table in a Power Bi Report:

External IdentifierEntity IdSourceEntity Name
00/0000/0dc7706b1-6406-4a71-bdda-d6891c411c60AJohn Smith
80909090dbe1894-c972-491b-af87-28f935d73e9eBABC Company
12345678cf955264-8a21-4640-93fb-b0974831033fDAmy Small
006f38ee9-d75d-4adb-ab10-b75f32c47da1CJeff West Family Trust
00/0000/0a248692e-763f-41c3-abf4-26917a55a39cAWorld Bank
8090909ee43373c-cdf9-4a24-9384-4e2f6be44400BRichard James
0146fcb63-5940-4eb4-84ef-fad33b42841cCCCC Productions
0e13cce4e-c792-4010-90c2-e6f1a34ed66cBMary Davis
00/0000/0b4146ae1-0ef1-4d35-8049-28cd18d510a4AX Investments

 

I want to filter the table so I only see the rows where an External Identifier appears more than once. Is there a way to do this?

 

Edit: Is it possible to get the count of external identifier per source?

Filtered Table 

1 ACCEPTED SOLUTION

@pauliduplooy , You could try this:-

Ext_count =
COUNTROWS (
    FILTER (
        'Table',
        'Table'[External Identifier] = EARLIER ( 'Table'[External Identifier] )
            && 'Table'[Source] = EARLIER ( 'Table'[Source] )
    )
)

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
pauliduplooy
Regular Visitor

@Samarth_18 thanks for the answer. This seems to work. If I have an additional column called source is it possible to do the above but per source?

External IdentifierEntity IdSourceEntity Name
00/0000/0dc7706b1-6406-4a71-bdda-d6891c411c60AJohn Smith
80909090dbe1894-c972-491b-af87-28f935d73e9eAABC Company
12345678cf955264-8a21-4640-93fb-b0974831033fBAmy Small
006f38ee9-d75d-4adb-ab10-b75f32c47da1CJeff West Family Trust
00/0000/0a248692e-763f-41c3-abf4-26917a55a39cAWorld Bank
8090909ee43373c-cdf9-4a24-9384-4e2f6be44400ARichard James
0146fcb63-5940-4eb4-84ef-fad33b42841cCCCC Productions
0e13cce4e-c792-4010-90c2-e6f1a34ed66cDMary Davis
00/0000/0b4146ae1-0ef1-4d35-8049-28cd18d510a4AX Investments

So essentially I want to get the count for each external identifier per source.

Samarth_18
Community Champion
Community Champion

Hi @pauliduplooy ,

 

You can create a column as below and use it as filter on your visual:-

Ext_count = COUNTROWS(FILTER('Table (4)','Table (4)'[External Identifier] = EARLIER('Table (4)'[External Identifier])))

image.png

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Thanks for the tip. I am almost at the right solution. Is it possible to apply the above solution but get the count of external identifiers per source?

@pauliduplooy , You could try this:-

Ext_count =
COUNTROWS (
    FILTER (
        'Table',
        'Table'[External Identifier] = EARLIER ( 'Table'[External Identifier] )
            && 'Table'[Source] = EARLIER ( 'Table'[Source] )
    )
)

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

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.