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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Vlookup in Power Query Editor

Hi,

How to use VLookup in Power Query Editor? I've pasted the DAX here but no luck. Any help on this?

MuraliPrasathS_0-1614252393081.png

 

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Refer the below blog to achieve it in M query:

 

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

 

Or

 

You can duplicate your query and merge the two queries to get the desired columns.

Disable the load from the duplicate one to avoid performance issues

 

View solution in original post

4 REPLIES 4
PC2790
Community Champion
Community Champion

Hi @Anonymous ,

 

Looks like you are using the DAX at teh wrond place.

LOOKUPVALUE is a dax function similiar to VLOOKUP in excel but this should be used in Power BI Desktop.

You are using it in Power Query Editor which only accepts M.

Please close the Editor window and create a column and then try to use this formula

Anonymous
Not applicable

Hi,

I need to use it here only so that I can unpivot the columns for my Dynamic Diemension logics. I can achive it from the Desktop but I can't do the unpivotting. 

Is it possible to get my desired coloum from another table using M Query? 

PC2790
Community Champion
Community Champion

Refer the below blog to achieve it in M query:

 

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

 

Or

 

You can duplicate your query and merge the two queries to get the desired columns.

Disable the load from the duplicate one to avoid performance issues

 

Anonymous
Not applicable

Thank you so much. You made my Day.  😎

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors