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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Vlookup - cant find data table

Hi There,

 

I am trying to do what is a very easy vlookup in excel in Power BI but when I type in the formula bar it doesnt find the data table I am looking for, what have I done wrong?!

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

RELATED function really need a relationship first, then columns in another table can be fetched in the formula.

But LOOKUPVALUE function doesn't need a relationship. Usually if you want to fetch a column in Table2, you should create a calculated column in Table1 like this:

LOOKUPVALUE('Table2'[Column2],'Table2'[Column1],'Table1'[Column1])

I create a sample, you can refer to the steps to see if you missed something.

Table1:

vkalyjmsft_0-1666683105321.png

Table2:

vkalyjmsft_1-1666683118354.png

The two tables don't have any relationship. Now I want to fetch the Cost column in Table1, create a calculated column in Table1:

Column =
LOOKUPVALUE ( Table2[Cost], 'Table2'[Category], 'Table1'[Category] )

Result:

vkalyjmsft_2-1666683237081.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

RELATED function really need a relationship first, then columns in another table can be fetched in the formula.

But LOOKUPVALUE function doesn't need a relationship. Usually if you want to fetch a column in Table2, you should create a calculated column in Table1 like this:

LOOKUPVALUE('Table2'[Column2],'Table2'[Column1],'Table1'[Column1])

I create a sample, you can refer to the steps to see if you missed something.

Table1:

vkalyjmsft_0-1666683105321.png

Table2:

vkalyjmsft_1-1666683118354.png

The two tables don't have any relationship. Now I want to fetch the Cost column in Table1, create a calculated column in Table1:

Column =
LOOKUPVALUE ( Table2[Cost], 'Table2'[Category], 'Table1'[Category] )

Result:

vkalyjmsft_2-1666683237081.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AbbasG
Memorable Member
Memorable Member

@Anonymous if you can share sample data/pbix file (after removing the sensitive information), it would be easy to help.

AbbasG
Memorable Member
Memorable Member

@Anonymous Hi, can you share the formula? In Power BI you have to use the LOOKUPVALUE function instead.

The below references will help you more - 

There is a LOOKUP function in DAX:

https://msdn.microsoft.com/en-us/library/gg492170.aspx

 

Also, you can check this article from here as well, which has various methods of replicating lookup functionality:

https://community.powerbi.com/t5/Community-Blog/Good-Ol-VLOOKUP-The-Ultimate-Guide-to-Lookups-in-Pow...

Anonymous
Not applicable

Thank you for this. I have tried to use both the lookupvalue function and related but when I type in the column name for the data I am trying to pull from a different datatable the whole table doesnt show. Is is something to do with managing the relationships behind the data tables maybe?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors