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
Anonymous
Not applicable

Custom column for currency conversion

Hello,

I have the following two tables loaded in Power Query and i am trying to add a new column to the first table for "Converted to DKK" based on the currency exchange rates in the second table. Is this possible to do in Power Query? Any help is much appreciated!

 

Document IDDateTotalCurrrency
400028304/08/20222805DKK
120152704/08/20221258EUR
220152701/08/2022518841USD
117475615/07/202251514NOK
117475920/07/202215145GBP
317476215/07/202254144USD
216996005/07/20225154DKK
417003305/07/20228785EUR
418816615/07/202232595GBP
117698306/07/20225665SEK
117675515/07/20227841DKK
317675915/07/202269792EUR
217678515/07/20229632USD
317681315/07/202255849USD
117681815/07/20221895EUR
117683015/07/202265894NOK
118816615/07/202265612GBP
414497004/07/20225645DKK
400042914/07/202278000SEK
117647815/07/2022319000GBP
400013815/07/2022374000DKK

 

CurrencyConverted to DKK
1 USD7.72
1 EUR7.44
1 GBP8.32
1 NOK0.72
1 SEK0.68

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

Select the first table, then click Home>Merge Queries.

vkalyjmsft_0-1664781470719.png

Select Currency column in the two tables and select the option "Use fuzzy matching to perform the merge", as in your sample, the currency columns in two tables are not totally the same.

vkalyjmsft_1-1664781766217.png

Then expand the Converted to DDK column, get the result.

vkalyjmsft_2-1664781919182.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

Select the first table, then click Home>Merge Queries.

vkalyjmsft_0-1664781470719.png

Select Currency column in the two tables and select the option "Use fuzzy matching to perform the merge", as in your sample, the currency columns in two tables are not totally the same.

vkalyjmsft_1-1664781766217.png

Then expand the Converted to DDK column, get the result.

vkalyjmsft_2-1664781919182.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

ronrsnfld
Super User
Super User

You would just "Join" (Table.Join or Table.NestedJoin) the two tables, and multiply the columns.

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
Top Kudoed Authors