<?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: How to create a sumx with 2 filter conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4012587#M158018</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="557826" data-lia-user-login="JL0101" class="lia-mention lia-mention-user"&gt;JL0101&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Return is missing from your formula, so please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR MaxRevision =
    MAX ( 'PivCouplers'[A-schedule_revision_numbers] )
RETURN
    SUMX (
        FILTER (
            PivCouplers,
            CONTAINSSTRING ( ( 'PivCouplers'[shape_code] ), "m" )
                &amp;amp;&amp;amp; 'PivCouplers'[A-schedule_revision_numbers] = MaxRevision
        ),
        [SumOfShapeCode]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 05:24:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-27T05:24:33Z</dc:date>
    <item>
      <title>How to create a sumx with 2 filter conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4009072#M157628</link>
      <description>&lt;P&gt;I have the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PivCouplers-Male =&lt;/P&gt;&lt;P&gt;SUMX(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PivCouplers,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CONTAINSSTRING(('PivCouplers'[shape_code]),"m")),[SumOfShapeCode])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I add an aditional Filter below&amp;nbsp;CONTAINSSTRING to include something along the lines of AND take the latest model, i.e. what is the syntax for 2 filters or more on the SUMX ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 12:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4009072#M157628</guid>
      <dc:creator>JL0101</dc:creator>
      <dc:date>2024-06-25T12:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sumx with 2 filter conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4009796#M157719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="557826" data-lia-user-login="JL0101" class="lia-mention lia-mention-user"&gt;JL0101&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I guess you should try using "&amp;amp;&amp;amp;" as AND, like: SUMX ( FILTER ( Table, CONDITION_1 &amp;amp;&amp;amp; CONDITION_2 ), [Measure or Column] ).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Best Regards, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Alexander&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@powerbi-vlog" target="_blank"&gt;My YouTube vlog in English&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@pbi-vlog" target="_blank"&gt;My YouTube vlog in Russian&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 20:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4009796#M157719</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2024-06-25T20:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sumx with 2 filter conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4010987#M157863</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax for 'SUMX' is incorrect. (DAX(VAR MaxRevision = MAX('PivCouplers'[A-schedule_revision_numbers])SUMX( FILTER( PivCouplers, CONTAINSSTRING(('PivCouplers'[shape_code]),"m") &amp;amp;&amp;amp; 'PivCouplers'[A-schedule_revision_numbers] = MaxRevision ),[SumOfShapeCode] ))).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 09:54:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4010987#M157863</guid>
      <dc:creator>JL0101</dc:creator>
      <dc:date>2024-06-26T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sumx with 2 filter conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4012587#M158018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="557826" data-lia-user-login="JL0101" class="lia-mention lia-mention-user"&gt;JL0101&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Return is missing from your formula, so please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR MaxRevision =
    MAX ( 'PivCouplers'[A-schedule_revision_numbers] )
RETURN
    SUMX (
        FILTER (
            PivCouplers,
            CONTAINSSTRING ( ( 'PivCouplers'[shape_code] ), "m" )
                &amp;amp;&amp;amp; 'PivCouplers'[A-schedule_revision_numbers] = MaxRevision
        ),
        [SumOfShapeCode]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 05:24:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-sumx-with-2-filter-conditions/m-p/4012587#M158018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T05:24:33Z</dc:date>
    </item>
  </channel>
</rss>

