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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PauNovaro
Frequent Visitor

Need Help with Calculations with conditions

Hello,

 

Need help on knowing how to correlate 2 tables. I´m trying to get the amount in USD dlls. I have 2 tables:

Currency Data

CurrencyDateKeyExchange rate
USDJuly21820.3
USDJune201818.9
USDMay201819.001
USDApril201818.65

 

Sales Data

AccountAmountAmount in USDDateKey
123$32,873?July218
456$71,623?June2018
678$8,731?May2018
912$8,172?April2018

 

How can I multiply the "Amount" times the "Exchange rate" depending on the month in which the sale has occur? I created the DateKey to have a reference.

 

Thanks ! 

 

Pau

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

1. Make a relationship based on the date key between these two tables. 1:Many type.

 

2. Create a calculated column AMount in USD= SalesData[Amount]*RELATED(Currency[Exchange Rate]

 

Hope this helps.

 

Thanks

Raj

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

 

1. Make a relationship based on the date key between these two tables. 1:Many type.

 

2. Create a calculated column AMount in USD= SalesData[Amount]*RELATED(Currency[Exchange Rate]

 

Hope this helps.

 

Thanks

Raj

Thank you Raj! It work perfectly!! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.