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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

how to 'vlookup' powerbi table with multiple values

hi all,

 

i am new to PowerBI and am facing an issue, any comments or help is much appreciated.

 

i have 2 tables at the moment, table 1 and table 2 which looks like this:

 

Table1

type 1 , apple

type 1, apple

type 2, cheese

type 3, bake

type 3, bake

 

Table2

type 1 , chef1

type 1, chef2

type 2, cook

type 3, helper1

type 3, helper2

 

what i would like to achieve is below:

Table1

type 1 , apple , chef1

type 1, apple , chef1

type 2, cheese , cook

type 3, bake , helper1

type 3, bake, helper1

 

basically a 'vlookup' from table1 to table2 taking only the first value.

 

i have tried LOOKUPVALUE but it returns an error of 'multiple values was supplied where a single value was expected'

 

is there another way for me to achieve this?

 

any help is appreciated, thank you

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

 

Try a new column in table 1

 

minx(filter(Table2, Table1[type] = Table2[Type] ) , Table2[Value] )

 

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
mangaus1111
Solution Sage
Solution Sage

hi @Anonymous ,

see my solution in power query

https://1drv.ms/u/s!Aj45jbu0mDVJkQfE8jZj3XGTet5A?e=470G5e

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

amitchandak
Super User
Super User

@Anonymous ,

 

Try a new column in table 1

 

minx(filter(Table2, Table1[type] = Table2[Type] ) , Table2[Value] )

 

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

is there a way to use the same formula but so it excludes blank values?

 

 

Anonymous
Not applicable

works like a charm! thank you very much sir!

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.