<?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 currencies to single currency in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-currencies-to-single-currency/m-p/3204860#M116686</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478861" data-lia-user-login="VeerBI" class="lia-mention lia-mention-user"&gt;VeerBI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;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
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 25 Apr 2023 10:53:36 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-04-25T10:53:36Z</dc:date>
    <item>
      <title>multiple currencies to single currency</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-currencies-to-single-currency/m-p/3204790#M116680</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;How should i iterate through all the rows multiplying exchange rates with the respective amount.&lt;/P&gt;&lt;P&gt;Appreciate if someone throw some light on it.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 10:14:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-currencies-to-single-currency/m-p/3204790#M116680</guid>
      <dc:creator>VeerBI</dc:creator>
      <dc:date>2023-04-25T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: multiple currencies to single currency</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-currencies-to-single-currency/m-p/3204860#M116686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478861" data-lia-user-login="VeerBI" class="lia-mention lia-mention-user"&gt;VeerBI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;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
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Apr 2023 10:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-currencies-to-single-currency/m-p/3204860#M116686</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-25T10:53:36Z</dc:date>
    </item>
  </channel>
</rss>

