<?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 with multiple criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982617#M154416</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="725118" data-lia-user-login="Alxnder" class="lia-mention lia-mention-user"&gt;Alxnder&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some problems with your syntax. You should use &lt;STRONG&gt;||&lt;/STRONG&gt; instead of &lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt;, because Grade cannot be FDM, FEJ, and FJH at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Fancy total = 
SUMX(
    FILTER('PackoutDetails',
    'PackoutDetails'[Grade] = "FDM" || 'PackoutDetails'[Grade] = "FEJ" || 'PackoutDetails'[Grade] = "FJH"
    ),
    'PackoutDetails'[Quantity]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final page visual effect is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be grateful if you could provide me with the pbix file or sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&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;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 05:46:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-10T05:46:14Z</dc:date>
    <item>
      <title>sumx with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982079#M154407</link>
      <description>&lt;P&gt;Hello, not sure why my sumx is not working. Not giving me an error but giving no data?&lt;/P&gt;&lt;P&gt;Trying to sum FDM, FEJ, FJH. All 3 criteria fall under the same column.&amp;nbsp;&lt;BR /&gt;Any help would be apprecaited!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 18:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982079#M154407</guid>
      <dc:creator>Alxnder</dc:creator>
      <dc:date>2024-06-09T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: sumx with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982160#M154410</link>
      <description>&lt;P&gt;The way you solve something like this is to use just the Filter part without SUMX and instead use COUNTROWS. Put that on a card visual.&lt;/P&gt;
&lt;P&gt;See what value you get.&lt;/P&gt;
&lt;P&gt;If you get blank, remove all the filter conditions except 1.&amp;nbsp; Then see if you get a value.&amp;nbsp; If you do, add one filter condition back in and see what happens.&amp;nbsp; If you get blank again, re-examine what the filter is doing.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 23:28:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982160#M154410</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2024-06-09T23:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: sumx with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982617#M154416</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="725118" data-lia-user-login="Alxnder" class="lia-mention lia-mention-user"&gt;Alxnder&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some problems with your syntax. You should use &lt;STRONG&gt;||&lt;/STRONG&gt; instead of &lt;STRONG&gt;&amp;amp;&amp;amp;&lt;/STRONG&gt;, because Grade cannot be FDM, FEJ, and FJH at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Fancy total = 
SUMX(
    FILTER('PackoutDetails',
    'PackoutDetails'[Grade] = "FDM" || 'PackoutDetails'[Grade] = "FEJ" || 'PackoutDetails'[Grade] = "FJH"
    ),
    'PackoutDetails'[Quantity]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final page visual effect is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be grateful if you could provide me with the pbix file or sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&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;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 05:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3982617#M154416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-10T05:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: sumx with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3986693#M154549</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&amp;nbsp;- Worked like charm, thanks for help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 18:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3986693#M154549</guid>
      <dc:creator>Alxnder</dc:creator>
      <dc:date>2024-06-11T18:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: sumx with multiple criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3986979#M154552</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;-- will have to try that method as well, thanks for the advice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 21:40:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sumx-with-multiple-criteria/m-p/3986979#M154552</guid>
      <dc:creator>Alxnder</dc:creator>
      <dc:date>2024-06-11T21:40:08Z</dc:date>
    </item>
  </channel>
</rss>

