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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
agragesh123
Frequent Visitor

How to replicate Vlookup in power BI ?

Hi! I have two different tables each very important in it own datapoint that they throw. The thing is Related will not work in this case becuase are absolutely no coloumn on whom i can remove duplicate to link with the other coloumn.The table is as follows:

chs.JPGccc.JPG

I hve the d list also with a lot of duplicates but in EX I do it as vlookup(d,sheet name[col],1,0) something like this so that in the end i can count the number of times the code repeats in the second file

3 REPLIES 3
Greg_Deckler
Super User
Super User

There is a LOOKUP function in DAX:

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

 

Also, you can check out my article here as well, which has some various methods of replicating lookup functionality:

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

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

my both fields are not having any unique columns they both have a lot of duplicate values. thus am not able to use the related function. is there any other way?

Anonymous
Not applicable

Maybe you can create a key column with two other columns using the concatenate formula.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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