<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple-Multiple Currency Conversion in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Multiple-Currency-Conversion/m-p/3410219#M128890</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 05:17:24 GMT</pubDate>
    <dc:creator>LizMor</dc:creator>
    <dc:date>2023-09-01T05:17:24Z</dc:date>
    <item>
      <title>Multiple-Multiple Currency Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Multiple-Currency-Conversion/m-p/3410179#M128888</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 04:56:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Multiple-Currency-Conversion/m-p/3410179#M128888</guid>
      <dc:creator>LizMor</dc:creator>
      <dc:date>2023-09-01T04:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple-Multiple Currency Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Multiple-Currency-Conversion/m-p/3410219#M128890</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 05:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-Multiple-Currency-Conversion/m-p/3410219#M128890</guid>
      <dc:creator>LizMor</dc:creator>
      <dc:date>2023-09-01T05:17:24Z</dc:date>
    </item>
  </channel>
</rss>

