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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
GRikerWillig
Regular Visitor

Vlookup for Text between multiple data sets

Hi All,

I'm sure I'm missing something incredibly obvious, but I'm struggling to perform a VLOOKUP type function between a 2 sets of data. The first is a live pull from our CRM system that I need to create a new column in to pull in a Region. Currently I just have a Sales Person. The second source, is a flat file that is literally 2 columns: Owner (Sales Person) and Region. I have tried the LOOKUPVALUE function within PowerBI, but I keep getting an error regarding non-numerical values which is very frustrating. Any pointers would be greatly appreciated! Below is some sample data. Thank you so much for your help!

 

Table1 

Sales Person
John Smith
James Person
Frank Brown

 

Table 2

OwnerRegion
John SmithAmericas
James PersonEurope
Frank BrownAsia
2 ACCEPTED SOLUTIONS
aj1973
Community Champion
Community Champion

Hi @GRikerWillig 

Is this what you want?

aj1973_0-1627502034986.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

I checked to confirm that all of the values I'm pulling are text. This is the error that I keep getting:

GRikerWillig_0-1627502828645.png

Not sure how to get around this one...

 

View solution in original post

10 REPLIES 10
smpa01
Community Champion
Community Champion

@GRikerWillig  can you try this relationship-proof column

 

Column= CALCULATE(MAXX(FILTER('Table 2','Table 2'[Owner]=max('Table 1'[Sales Person])),'Table 2'[Region]))

 

 

Capture.PNG

 


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
• Week 3: View
• Week 4: View
========================
Fowmy
Super User
Super User

@GRikerWillig 

Make sure you have the same data type used the LOOKVALUE function correctly, can you the dax formula ?

https://dax.guide/lookupvalue/


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Got it! Looks like I was creating a measure instead of a new column which explains the error. Thank you so much for your help!

I checked to confirm that all of the values I'm pulling are text. This is the error that I keep getting:

GRikerWillig_0-1627502828645.png

Not sure how to get around this one...

 

aj1973
Community Champion
Community Champion

Hi @GRikerWillig 

Is this what you want?

aj1973_0-1627502034986.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Looks like I was creating a measure instead of a column which was the cause of my difficulties. Thank you so much for your patience and help!

I thought so, But you made it.

 

Welcome

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

It definitely would be if I could get it to work 😞 I have already confirmed that there IS a relationship created between the tables, I started there first, but when I started typing in the related function, no Table/Column combos populated so is it possible that I entered it incorrectly somehow?

GRikerWillig_1-1627503033594.png

 

The relashionship between tables is it this way?

aj1973_0-1627503512842.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

It is. There are a bunch of other tables attached to each other in the backround, but those 2 are directly connected.

GRikerWillig_1-1627503670828.png

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors