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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Trying to Multiply the Value in Rows from Two different tables

I have two different tables. One is a table with Currency rates. The other is a table with my sales orders. I have a relationship built in both tables where the Currency_Month_Year matches on a many to 1 relationship from sales orders to currency. I'm trying to put in a calculation where it multiplies my Net amount with my Value (Value is my currency rate) to give me a value in USD. 

 

I've tried using quick measures but it wants me to take count of value and I don't want to do that. 

 

In essence, it should be (SalesTable[Net amount] x (FX rates[Value])

 

Therefore in row 1, 0; row 2 = 1266, etc. 

 

Capture.PNG

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

Hi @Anonymous

 

Have you tried a calculated column in your SalesTable like this?

 

New Column = 'SalesTable'[Net Amount] * RELATED('FX Rates'[Value])

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

If you want to get the desired value in calculated column, you could try this formula:

Column = 'SalesTable'[Net Amount] * RELATED('FX Rates'[Value])

 

If you want to do calculation via measure, you could try:

Measure = MAX('SalesTable'[Net amount])*MAX('FX rates'[Value])

 

Best regards,
Yuliana Gu

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

Hi @Anonymous

 

Have you tried a calculated column in your SalesTable like this?

 

New Column = 'SalesTable'[Net Amount] * RELATED('FX Rates'[Value])

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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