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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

TRICKY - Power Query Lookup

Hi Experts

 

Is it posssible to move the following measure to a Custom Column in Power Query and how would you do it - Steo by Step guide for learn...

LookupCost = LOOKUPVALUE( 'Append_Direct Ohds_IAM&OES'[Value], 'Append_Direct Ohds_IAM&OES'[Month], Sales_Data_Master[MonthV2], 'Append_Direct Ohds_IAM&OES'[Year], Sales_Data_Master[Years_In_Date], 'Append_Direct Ohds_IAM&OES'[Channel], Sales_Data_Master[Channel], 'Append_Direct Ohds_IAM&OES'[Country], Sales_Data_Master[Sales_Country], 'Append_Direct Ohds_IAM&OES'[Type of Cost], "4.Purch")

 

Happy to Provide Sample data if required... 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

In my opinion, I think you can try to use the merge query function.

Please check the below for the merge query function in Power Query Editor.

 

Picture11.png

 

1 Select the table that you want to pull data into.

2 click

3 select the table that you want to lookup the value

4 select the column that you want to match

5 select the column that you want to match -> in step four, when you select multiple columns the numbers are shown. you also have to match these numbers with step five.

6 click

 

I hope it helps.

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

In my opinion, I think you can try to use the merge query function.

Please check the below for the merge query function in Power Query Editor.

 

Picture11.png

 

1 Select the table that you want to pull data into.

2 click

3 select the table that you want to lookup the value

4 select the column that you want to match

5 select the column that you want to match -> in step four, when you select multiple columns the numbers are shown. you also have to match these numbers with step five.

6 click

 

I hope it helps.

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

amitchandak
Super User
Super User

@Anonymous , refer if these couple of articles 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

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

I think@ImkeF can help with this.

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.