<?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: SUMX and FILTER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403172#M174784</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;Number of Trx with Different Currencies = &lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;Fact,&lt;BR /&gt;RELATED(dim_debit_currency[debit-currency-code]) &amp;lt;&amp;gt; RELATED(dim_credit_currency[credit-currency-code])&lt;BR /&gt;),&lt;BR /&gt;Fact[transaction-count]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2025 14:50:15 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-02-10T14:50:15Z</dc:date>
    <item>
      <title>SUMX and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403131#M174783</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Let me simplify my question.&lt;BR /&gt;Besides my Date table I have three other tables.&lt;BR /&gt;&lt;BR /&gt;Fact table, containing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;account-id&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;transaction-date&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;debit-currency-key&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;credit-currency-key&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dim_debit_currency, containing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;debit-currency-key&lt;/LI&gt;&lt;LI&gt;debit-currency-code&lt;/LI&gt;&lt;LI&gt;debit-currency-name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dim_credit_currency, containing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;credit-currency-key&lt;/LI&gt;&lt;LI&gt;credit-currency-code&lt;/LI&gt;&lt;LI&gt;credit-currency-name&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;relations:&lt;/P&gt;&lt;P&gt;dim-debit-currency to fact 1:n, based on debit-currency-key&lt;BR /&gt;dim-credit-currency to fact 1:n, based on credit-currency-key&lt;BR /&gt;Date table to fact 1:n, based on transaction-date&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have one measure : Number of Trx = SUM(transaction-count)&lt;BR /&gt;&lt;BR /&gt;Now I want to create a measure that gives me, no matter in what filter context used, the number of transactions where credit-currency-code &amp;lt;&amp;gt; debit-currency-code.&lt;BR /&gt;&lt;BR /&gt;Can someone help?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 14:28:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403131#M174783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-10T14:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403172#M174784</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;Number of Trx with Different Currencies = &lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;Fact,&lt;BR /&gt;RELATED(dim_debit_currency[debit-currency-code]) &amp;lt;&amp;gt; RELATED(dim_credit_currency[credit-currency-code])&lt;BR /&gt;),&lt;BR /&gt;Fact[transaction-count]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 14:50:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403172#M174784</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-10T14:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403184#M174785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My observation is that your fact table doesn't contain amount column but the accounting records should have matching debits and credits which should balance (add up) to zero, and currency should be the same for the given transactions. I am trying to understand which situation your particular requirement arises, as your accounting system will record the transaction in document currency (transaction currency) which will be converted automatically to your local currency.&amp;nbsp; I'd greatly appreciate it if you could let me know why your fact table doesn't have the amount field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 15:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4403184#M174785</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-02-10T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX and FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4404590#M174854</link>
      <description>&lt;P&gt;Thnx&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;, this seems to work right&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 08:26:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-and-FILTER/m-p/4404590#M174854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-11T08:26:37Z</dc:date>
    </item>
  </channel>
</rss>

