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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Multiply three values (2 from same Table).

Hi,

 

This might be a easy task but since I´m new to BI I would need some help!

 

I have a table "Export" with two columns "Quantiy" and "Value". I´m using Sumx since I want a calculation on each row and not on the totalts. But since this is in the wrong currency, I need to multiply with my conversion rate. Note that I dont need any lookup on the FX value since I´m using a conversion value. This value is found in the table "Currency" and column "Conversion" and they are linked togheter through a date-table.

 

My code is:

SUMX('Export Data','Export Data'[productQuantity]* 'Export Data'[productPriceExVAT])
 
And I need to multiply this value with the conversion rate on each row, since the currency is different each day. 
 
Regards,
Niclas
 
 
1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

You can accomplish this using RELATED:

Export Measure = SUMX('Export Data','Export Data'[Qty]* 'Export Data'[Value]*RELATED(CurrencyRates[Conversion]))

Test Data:
ValtteriN_0-1639998861058.pngValtteriN_1-1639998875475.pngValtteriN_2-1639998888122.png


End result:

ValtteriN_3-1639998912765.png

I hope this helps to solve your issue and if it does consider accepting this as a solution and giving the post a thumbs up!





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ValtteriN
Super User
Super User

Hi,

You can accomplish this using RELATED:

Export Measure = SUMX('Export Data','Export Data'[Qty]* 'Export Data'[Value]*RELATED(CurrencyRates[Conversion]))

Test Data:
ValtteriN_0-1639998861058.pngValtteriN_1-1639998875475.pngValtteriN_2-1639998888122.png


End result:

ValtteriN_3-1639998912765.png

I hope this helps to solve your issue and if it does consider accepting this as a solution and giving the post a thumbs up!





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

Proud to be a Super User!




Anonymous
Not applicable

Thanks for the help! I tried this earlier but it didn´t work. The error was in my relationship between the tables!

 

Regards,

Niclas

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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