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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors