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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
VeerBI
Frequent Visitor

multiple currencies to single currency

Hi All,

 

I have two tables transactions and Exchangerates. created two measures one to get the exchange rates for multiple currency and other to get the total amount (amount X exchange rate). When we deal with multiple exchange rates my measure does not give me total for that particular company.

How should i iterate through all the rows multiplying exchange rates with the respective amount.

Appreciate if someone throw some light on it.

VeerBI_0-1682417478529.png

 

VeerBI_1-1682417552366.png

 

1 REPLY 1
tamerj1
Super User
Super User

Hi @VeerBI 
Please try

ReportingCurrencyMeasure =
VAR GBPRate = [ExchRateMeasure] * 0.01
VAR USDRate = 0.375
RETURN
    SUMX (
        Transactions,
        VAR ExchangeRate =
            SWITCH (
                Transactions[REPORTINGCURRENCY],
                "GBP", GBPRate,
                "USD", USDRate,
                1
            )
        RETURN
            Transactions[ACCTINGCURRAMOUNT] * ExchangeRate
    )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors