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

LOOKUP Currency with calculation

Hi there, 

 

I am trying to convert my sales in different counter (with different currency) to the company currency. I have 2 table below and I am using this, however I dont think my DAX is correct as it is giving me different results,

 

 

EUR Val = ROW("LOK",[(Local)]) / LOOKUPVALUE('Exchange Rate'[21 Rates],'Exchange Rate'[Currency],ROW("Curr",[Currency]))

 

 

Table Name: Total SEA

CurrencyItem(Local)
USDProduct 153
USDProduct 275
USDProduct 329
USDProduct 437
USDProduct 537
USDProduct 6218
MYRProduct 1173
MYRProduct 2173
MYRProduct 3212
MYRProduct 4414
MYRProduct 5414
MYRProduct 61518
SGDProduct 161.6
SGDProduct 261.6
SGDProduct 3554.4
SGDProduct 461.6
SGDProduct 561.6

 

Table Name: Exchange Rate

Currency21 Rates
SGD1.578
USD1.113
THB36.21
MYR4.793

 

Any help is much appriciated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rphang , Create a new column like

EUR Val = maxx(filter('Exchange Rate','Exchange Rate'[Currency] = SEA[Currency]),'Exchange Rate'[Rates]) * SEA[Local]

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@rphang , Create a new column like

EUR Val = maxx(filter('Exchange Rate','Exchange Rate'[Currency] = SEA[Currency]),'Exchange Rate'[Rates]) * SEA[Local]

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

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.

Top Solution Authors