<?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: Sum of sales with different currency rate for each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947118#M153348</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442514" data-lia-user-login="Jackie003" class="lia-mention lia-mention-user"&gt;Jackie003&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the DAX below should work, so long as your relationship is set up as I anticipate it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    VAR Sales_in_Currency =
        ADDCOLUMNS (
            SUMMARIZE (
                'PLN Table',
                'PLN Table'[Date]
            ),
            "Amt_In_Currency", SUM(Sales PLN),
            "Rate",
                CALCULATE (
                    SELECTEDVALUE ( 'EUR Table'[EUR] )
                )
        )
    VAR calc =
        SUMX (
            Sales_in_Currency,
            [Amt_In_Currency] * [Rate]
        )
    RETURN
        calc
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not clear what you tables are named, so I have done my best to make this easy to see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works, please could you mark this as the solution?&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 10:57:10 GMT</pubDate>
    <dc:creator>mark_endicott</dc:creator>
    <dc:date>2024-05-24T10:57:10Z</dc:date>
    <item>
      <title>Sum of sales with different currency rate for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3946926#M153340</link>
      <description>&lt;P&gt;Hello, I would like to ask you for help. I need to calculate Total sales with PLN currency and EUR. I need to calculate in dax Total Sales with EUR currency (every month has different rate). Of course between these tables is relationship - many to 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:16:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3946926#M153340</guid>
      <dc:creator>Jackie003</dc:creator>
      <dc:date>2024-05-24T10:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of sales with different currency rate for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947054#M153344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442514" data-lia-user-login="Jackie003" class="lia-mention lia-mention-user"&gt;Jackie003&lt;/a&gt;&amp;nbsp;you need solution in Excel with DAX or in Power BI?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:43:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947054#M153344</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-05-24T10:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of sales with different currency rate for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947067#M153346</link>
      <description>&lt;P&gt;In Power Bi.&lt;/P&gt;&lt;P&gt;What's more, every month new currency rate is updated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947067#M153346</guid>
      <dc:creator>Jackie003</dc:creator>
      <dc:date>2024-05-24T10:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of sales with different currency rate for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947115#M153347</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442514" data-lia-user-login="Jackie003" class="lia-mention lia-mention-user"&gt;Jackie003&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the DAX below should work, so long as your relationship is set up as I anticipate it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    VAR Sales_in_Currency =
        ADDCOLUMNS (
            SUMMARIZE (
                'PLN Table',
                'PLN Table'[Date]
            ),
            "Amt_In_Currency", SUM(Sales PLN),
            "Rate",
                CALCULATE (
                    SELECTEDVALUE ( 'EUR Table'[EUR] )
                )
        )
    VAR calc =
        SUMX (
            Sales_in_Currency,
            [Amt_In_Currency] * [Rate]
        )
    RETURN
        calc
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not clear what you tables are named, so I have done my best to make this easy to see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works, please could you mark this as the solution?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:56:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947115#M153347</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-05-24T10:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of sales with different currency rate for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947118#M153348</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442514" data-lia-user-login="Jackie003" class="lia-mention lia-mention-user"&gt;Jackie003&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the DAX below should work, so long as your relationship is set up as I anticipate it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    VAR Sales_in_Currency =
        ADDCOLUMNS (
            SUMMARIZE (
                'PLN Table',
                'PLN Table'[Date]
            ),
            "Amt_In_Currency", SUM(Sales PLN),
            "Rate",
                CALCULATE (
                    SELECTEDVALUE ( 'EUR Table'[EUR] )
                )
        )
    VAR calc =
        SUMX (
            Sales_in_Currency,
            [Amt_In_Currency] * [Rate]
        )
    RETURN
        calc
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not clear what you tables are named, so I have done my best to make this easy to see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works, please could you mark this as the solution?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:57:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947118#M153348</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-05-24T10:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of sales with different currency rate for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947418#M153352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442514" data-lia-user-login="Jackie003" class="lia-mention lia-mention-user"&gt;Jackie003&lt;/a&gt;&amp;nbsp;one possible solution:&lt;/P&gt;
&lt;P&gt;create 2 calculated columns in Sales table (order is important) and two measures (starting with M)&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;EUR_rate =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;EUR&lt;/SPAN&gt;&lt;SPAN&gt;[EUR]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;EUR&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;EUR&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&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DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;M_Sales_EUR =&lt;/SPAN&gt; &lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Sales_EUR]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 12:17:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-sales-with-different-currency-rate-for-each-month/m-p/3947418#M153352</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-05-24T12:17:25Z</dc:date>
    </item>
  </channel>
</rss>

