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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Namoh
Post Partisan
Post Partisan

VLOOKUP in M / Power Querie

Hi, I need to do a VLOOKUP in M / Power query.

 

Although I found some references via Google and this forum, I can't figure out, how the formula should look like, although it shouldn't be that difficult.

 

Both Tables consist of mulitple columns but I only references the ones that are relevant.

 

Table 1: Top3

Column 1: CombineForRanking

 

Table2: Top3 Average

Column 1: CombineForRanking

Column 2: Average

 

In Table 1, I want to add a new column, which looks for the row value of column "CombineForRanking", and if it finds the same value in Table2Column1 (Top3 Average - CombineForRanking) it should return the value of column Average.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
4 REPLIES 4
Anonymous
Not applicable

Thanks!

You can call me stupid (might be the warm weather?) but I just didn't make the link that merging columns was meant the same as merging queries.

This did the job.

For other users with this problem, when you check the link, don't click away because it starts in excel, it goes over to Power Bi / Pwer Querie.

Namoh
Post Partisan
Post Partisan

@amitchandak, thanks for your reply.

 

I had already looked at the eriksvensen link, but it doesn't make sense to me.

 

Call me stupid, but somewhere I'm doing something wrong.

 

With above 2 tables and 3 columns, can you explain in simple english which steps I need to take?

 

I just want my Table 1 (which has tens of columns and thousands of rows) expanded with 1 column, coming from Table2.

 

I see so many questions about VLOOKUP in Power Query / M, that I can't believe there is not an easy way to do this, like you can do in excel.

amitchandak
Super User
Super User

@Namoh , Most of the time Vlookup in power query is merging and select columns

 

refer if these can help

https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/

https://www.myonlinetraininghub.com/excel-power-query-vlookup

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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