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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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