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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ziqh
Frequent Visitor

Currency Conversion within PowerQuery

Hi All,

I'm stuck trying to figure out a way to apply a currency conversion within the confines of PowerQuery.

I have two tables, one containing transactions (ie: a date and a value), and one containing currency conversions in the following format:

ziqh_0-1625144632009.png

 

For the life of me, I cannot come up with any way to apply these conversions to my transaction table.

To make matters worse, I ideally need to do this entirely within PowerQuery, as this step will take place before some other merges, so my previous DAX solutions are out.

 

Anyone know a possible way to achieve this?

1 REPLY 1
DataInsights
Super User
Super User

@ziqh,

 

In Power Query, you can merge the tables and create a custom column.

 

DataInsights_0-1625260722507.png

 

M code:

 

let
    Source = Table.NestedJoin(Transactions, {"Date"}, Rates, {"Start Date"}, "Rates", JoinKind.LeftOuter),
    ExpandRates = Table.ExpandTableColumn(Source, "Rates", {"Rate"}, {"Rate"}),
    AddColumn = Table.AddColumn(ExpandRates, "Converted Amount", each [Amount] * [Rate]),
    ChangeType = Table.TransformColumnTypes(AddColumn,{{"Converted Amount", type number}})
in
    ChangeType

 

DataInsights_2-1625260754910.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors