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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jk1
New Member

Comparing columns in two different tables

Hey everyone! I'm new to PowerBI and I'm very interested in learning more about it.

Let's say I have a couple of csv files with 1)a list of pokemon names and type etc... 2) a list of people that I have with also other columns DOB, Address, etc..

How can I calculate the number of people that have the same first name as a pokemon? 

Also if you guys have any suggestions for a new user please let me know!

Thank you!

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

 

hi @jk1

 

Try this: Change the name of tables and columns accord to your data

 

 

CountNames =
COUNTROWS (
    FILTER (
        Table2,
        Table2[First Name]
            = LOOKUPVALUE (
                PokemonTable[Pokemon Name],
                PokemonTable[Pokemon Name], Table2[First Name]
            )
    )
)




Lima - Peru

View solution in original post

1 REPLY 1
Vvelarde
Community Champion
Community Champion

 

hi @jk1

 

Try this: Change the name of tables and columns accord to your data

 

 

CountNames =
COUNTROWS (
    FILTER (
        Table2,
        Table2[First Name]
            = LOOKUPVALUE (
                PokemonTable[Pokemon Name],
                PokemonTable[Pokemon Name], Table2[First Name]
            )
    )
)




Lima - Peru

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.