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
mmakhlo
Frequent Visitor

Convert Currency

Hello all,

 

I need to do a currency conversion. Here is my set up

 

table 1 has the site and currency rate (each site is in a different country)

 

table 2 has site for each part and the cost calculated in USD

 

I currently have a 1:many relationship going from table 1 to table 2. What is the best way about calculating the correct cost based on the site?

 

Cheers

1 ACCEPTED SOLUTION

Hi @mmakhlo,

 

The error is caused by the wrong parenthesis.

6.png

 

The correct syntax is:

7.PNG

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.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @mmakhlo,

 

In table 2, you could create a calculated column using this DAX formula:

 

Real cost = RELATED(Table_1[Currency rate])*Table_2[Cost USD]

 

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.

Thank you for replying @v-yulgu-msft! When I use that formula, I get this error. Do you know what it means?

 

Error.PNG

Hi @mmakhlo,

 

The error is caused by the wrong parenthesis.

6.png

 

The correct syntax is:

7.PNG

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.

Helpful resources

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