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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
LizMor
New Member

Multiple-Multiple Currency Conversion

Hi all,

I have the below measure to convert my Transactions (or Sales) data from multiple currencies (GBP,USD,ZAR) to multiple currencies (GBP,USD,ZAR,KES,INR,NGN). My code and model is shown below, however, I keep getting the error that more than one currency has been selected, despite having selected just one in the screenshot of my report.

 

Sales (Monthly) = 
IF (
    HASONEVALUE('Target Currency'[CurrencyCode]),
    VAR AggregatedSalesInCurrency = 
        ADDCOLUMNS(
            SUMMARIZE(
                Transactions,
                'Date'[Calendar Month Year], --maybe just use Month
                'Source Currency'[TxnCurr]
            ),
            "@SalesAmount",[Sales (internal)],
            "@Rate",CALCULATE(SELECTEDVALUE('Exchange Rates - Monthly'[Rate]))
        )
    VAR Result = 
        SUMX(
            AggregatedSalesInCurrency,
            IF(
                NOT (ISBLANK([@Rate])),
                [@SalesAmount]*[@Rate],
                ERROR("Missing conversion rate")
            )
        )
    RETURN Result
)

 

LizMor_0-1693542501634.png

LizMor_1-1693542517764.png

 

 

I think the issue might be pertaining to the fact that I am using one exchange rate for each month, but I have formatted the Exchange rates - Monthly[Date] to only be yyyy/mm, so I'm not quite sure what the issue is.  

 

Any help would be very much appreciated!

1 ACCEPTED SOLUTION
LizMor
New Member

Update: On further inspection of the data provided, I see the exchange rates table is missing some conversions. I will rectify this and follow-up here if that does the trick.

 

View solution in original post

1 REPLY 1
LizMor
New Member

Update: On further inspection of the data provided, I see the exchange rates table is missing some conversions. I will rectify this and follow-up here if that does the trick.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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