<?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 working correctly for one label, but not the other in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-working-correctly-for-one-label-but-not-the-other/m-p/4202212#M166706</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try below measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure =
SUMX (
    FILTER (
        SUMMARIZE ( 'table', 'table'[Points], 'table'[system], 'table'[label] ),
        'table'[system] = "B"
            &amp;amp;&amp;amp; 'table'[label] = "Blocker"
    ),
    'table'[points]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dangar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 18:05:46 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2024-09-30T18:05:46Z</dc:date>
    <item>
      <title>SUMX working correctly for one label, but not the other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-working-correctly-for-one-label-but-not-the-other/m-p/4202002#M166698</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 SUM values based on distinct criteria in three other columns. The data looks something like this:&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;&lt;P&gt;I need to sum the Points column based on distinct Titles, where Platform = B, and Label = blocker. I have come up with the DAX below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;It works correctly for system "A" and returns 7, but if I change the system to "B" it no longer works. It seems to only execute the CALCULATE piece and returns 2, when it should be 4. Why is it no longer working by simply changing the system to the other one? Is there a way to write this better? Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Sep 2024 16:52:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-working-correctly-for-one-label-but-not-the-other/m-p/4202002#M166698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T16:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX working correctly for one label, but not the other</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-working-correctly-for-one-label-but-not-the-other/m-p/4202212#M166706</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try below measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure =
SUMX (
    FILTER (
        SUMMARIZE ( 'table', 'table'[Points], 'table'[system], 'table'[label] ),
        'table'[system] = "B"
            &amp;amp;&amp;amp; 'table'[label] = "Blocker"
    ),
    'table'[points]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dangar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 18:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-working-correctly-for-one-label-but-not-the-other/m-p/4202212#M166706</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-09-30T18:05:46Z</dc:date>
    </item>
  </channel>
</rss>

