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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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...

 


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors