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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PBI12345
Helper I
Helper I

Request: How to make LOOKUPVALUE formula retrieve from multiple result columns

Hello,

 

I have a data table containing information on the sale of beauty products. Each row is an individual transaction record, but does not include the price paid by the customer. It does include the loyalty tier of the customer. 

 

In a separate lookup table, I have a list of prices based product type and loyalty tier (different loyalty tiers pay different amounts per product).

 

How can I easily map this price information into my data table? I have tried different combinations of LOOKUPVALUE and RELATED but can't get it to work given my lookup table has values across multiple columns:

ProductPlatinumGoldSilverBronze
Blush$35$40$45$50
Mascara$30$35$38$40
Foundation$70$80$90$100
Fake eyelashes$14$16$18$20
Lipstick$35$40$45$50

 

Transaction IDSale DateProductQuantityLoyalty TierCost
11-JanBlush1Platinum??
21-JanBlush4Bronze??
31-JanMascara1Bronze??
41-JanLipstick2Gold??

 

Any help would be much appreciated!

 

Thank you 









I am trying (unsucessfully) to use LOOKUPVALUE to

1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @PBI12345 ,

 

First, you need to convert the price lookup table into a one-dimensional table format in PowerQuery.

 

xifeng_L_1-1716690904334.png

 

Then, we can use the LOOKUPVALUE function to match the price in Sales table.

 

xifeng_L_0-1716690807068.png

 

 

Demo - How to make LOOKUPVALUE formula retrieve from multiple result columns.pbix

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

View solution in original post

2 REPLIES 2
xifeng_L
Super User
Super User

Hi @PBI12345 ,

 

First, you need to convert the price lookup table into a one-dimensional table format in PowerQuery.

 

xifeng_L_1-1716690904334.png

 

Then, we can use the LOOKUPVALUE function to match the price in Sales table.

 

xifeng_L_0-1716690807068.png

 

 

Demo - How to make LOOKUPVALUE formula retrieve from multiple result columns.pbix

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

Works perfectly! Thank you for the very fast + detailed response. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.