<?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: CONDITIONAL or NESTED SUMIF in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3301281#M123146</link>
    <description>&lt;P&gt;Thank you tamerj1. This worked perfectly.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2023 23:44:06 GMT</pubDate>
    <dc:creator>aobubo85</dc:creator>
    <dc:date>2023-06-25T23:44:06Z</dc:date>
    <item>
      <title>CONDITIONAL or NESTED SUMIF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3293678#M122660</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to achieve the result in the screenshot below in a Power BI Report but having trouble with the DAX. The aim is to show an aggregate Overdraft position for parent accounts by adding negative gross balances from the sub accounts in the 2nd image below.&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;The table below shows that the gross balance in column E adds the principal and income only (not oincluding expense) from the same account Account A, for e.g. E2 = D2 + D3. The result in F2 for Parent 1 is a sum of only the negative Gross balances E2 + E6 to compute the Net Overdraft -600. I hope this makes sense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;I have created the 2 measures below to compute the result with no success so far. Any help will be greatly appreciated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gross Overdraft =&amp;nbsp;&lt;BR /&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;SUM( Table 2[Balance], FILTER(Table 2,&amp;nbsp;Table 2[Type] IN {Principal, Income}&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Net Overdraft = SUMX(Table2,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SWITCH(TRUE(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [Gross Overdraft] &amp;lt; 0, [Gross Overdraft], 0)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 16:25:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3293678#M122660</guid>
      <dc:creator>aobubo85</dc:creator>
      <dc:date>2023-06-20T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: CONDITIONAL or NESTED SUMIF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3293723#M122663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578043" data-lia-user-login="aobubo85" class="lia-mention lia-mention-user"&gt;aobubo85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Net Overdraft =&lt;BR /&gt;SUMX (&lt;BR /&gt;SUMMARIZE ( Table2[Account], Table2[Account], "@GrossDraft", [Gross Overdraft] ),&lt;BR /&gt;IF ( [@GrossOverdraft] &amp;lt; 0, [@GrossOverdraft], 0 )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 17:01:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3293723#M122663</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-20T17:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: CONDITIONAL or NESTED SUMIF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3301281#M123146</link>
      <description>&lt;P&gt;Thank you tamerj1. This worked perfectly.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 23:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CONDITIONAL-or-NESTED-SUMIF/m-p/3301281#M123146</guid>
      <dc:creator>aobubo85</dc:creator>
      <dc:date>2023-06-25T23:44:06Z</dc:date>
    </item>
  </channel>
</rss>

