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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

lookupvalue

how to use lookupvalue function in power query? i am using direct query and cannot create calculated column

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All,
Firstly  audreygerred thank you for your solution!
@powerbiexpert22 as you can imagine, there is actually no direct function in Power Query like the LOOKUPVALUE function in DAX, however, you can achieve LOOKUPVALUE-like functionality by using a merge query, and the following is an application that has a merge query.

vxingshenmsft_0-1724381795905.png

vxingshenmsft_1-1724381832435.png

If you use it in direct query mode, it will do this merge process by querying the database.

vxingshenmsft_2-1724382366184.png

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @powerbiexpert22 ,

Has your problem been solved after all this time, or has a new problem arisen, if there are any other questions on this issue, feel free to contact me and I'll get back to you as soon as I receive the message.

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi All,
Firstly  audreygerred thank you for your solution!
@powerbiexpert22 as you can imagine, there is actually no direct function in Power Query like the LOOKUPVALUE function in DAX, however, you can achieve LOOKUPVALUE-like functionality by using a merge query, and the following is an application that has a merge query.

vxingshenmsft_0-1724381795905.png

vxingshenmsft_1-1724381832435.png

If you use it in direct query mode, it will do this merge process by querying the database.

vxingshenmsft_2-1724382366184.png

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

audreygerred
Super User
Super User

Hi! In Power Query, you should be able to do a merge to bring in fields that you want from one table to another. Even in import mode you should only use a calculated column as a last resort - you always want to add columns as far upstream as possible.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.