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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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