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
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
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!

November Carousel

Fabric Community Update - November 2024

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

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.