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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
powerbiexpert22
Post Prodigy
Post Prodigy

lookupvalue

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

1 ACCEPTED SOLUTION
v-xingshen-msft
Community Support
Community Support

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
v-xingshen-msft
Community Support
Community Support

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.

v-xingshen-msft
Community Support
Community Support

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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