Forum Discussion

aeid101's avatar
aeid101
New Member
10 years ago

Power Query to combine tables and create a custom field

Using Power Query or the underlying "M" language: 

 

How could I combine multiple tables based on the common index column "country" to produce a currency conversion as shown in the images below:

 

Local Currency Transactions * FX Rates = Currency Adjusted

 

 

Cross posted on SO: 

http://stackoverflow.com/questions/36640581/using-power-query-get-transform-excel-2016-for-combining-tables

1 Reply

  • austinsense's avatar
    austinsense
    Icon for Impactful Individual rankImpactful Individual

    Alright you're gonna be happy with how easy this is.

     

    You want yo "Merge" the queries together based on the country column.  When you merge them you'll have all of the columns on one table and then you can do the math to convert to USD.