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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Raph
Helper III
Helper III

Find a value on another table based on several criteria

Hello,

 

Let's say I have a Matrix with customers splitted by countries on rows and their sales amounts on values.

I have a table in my model with all the discount percentages by customers and by countries (a customer will have different % depending the countries the products) :

 

Customer    Country   % disc product A      % discount product B

A                  US                    12%                              14%

A                  FR                       9%                              12%

B                  UK                    13%                               11%

B                  FR                     12%                               13%

C                  FR                     10%                               9%

 

Which DAX function should I use to create a measure which will return the good discount %? For exemple, on the line of the matrix where we see the sales of product A to Customer B in UK, I would like to have a new column "Discount amount" with 13% multiplied by the total sales of product A to Customer B in UK.

 

I hope this request is clear!

 

Thank you very much for your help.

 

Best regards,

Raph

 

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

@Raph,

 

You may select Unpivot Columns in Query Editor first, then use LOOKUPVALUE in DAX.

Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Raph,

 

You may select Unpivot Columns in Query Editor first, then use LOOKUPVALUE in DAX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors