<?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 not calculating the grand total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3340154#M125346</link>
    <description>&lt;P&gt;Thank you very much! Worked like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 07:08:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-20T07:08:11Z</dc:date>
    <item>
      <title>Sumx not calculating the grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3338313#M125229</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;First ever post.&lt;BR /&gt;&lt;BR /&gt;I'm struggling to get the right formula for my solution.&lt;BR /&gt;&lt;BR /&gt;I have a calculated column which follows the logic:&lt;BR /&gt;Products bought =&lt;BR /&gt;IF( A = 0 &amp;amp;&amp;amp; B = 1, 1, 0)&lt;BR /&gt;&lt;BR /&gt;I get the correct output:&lt;BR /&gt;&lt;BR /&gt;Product A&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;Product B&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;Product C&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;&lt;BR /&gt;Client is asking if the product appears just once, show it as 1, not a 2, so it would be like&lt;BR /&gt;&lt;BR /&gt;Product A&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;Product B&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;Product C&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;&lt;BR /&gt;Since it's a calculated column, i tried to use this formula for a solution:&lt;BR /&gt;IF(SUMX('Table','Table'[Products Bought]) &amp;gt;= 1, 1, 0)&lt;BR /&gt;&lt;BR /&gt;Now I get the proper counts, but I can't get to show the result as a GRAND total or SUB Total.&lt;BR /&gt;&lt;BR /&gt;How do I fix this?&lt;BR /&gt;&lt;BR /&gt;Does my logic make sense?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance DAX guru's!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 10:20:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3338313#M125229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-19T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sumx not calculating the grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3340133#M125343</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;Maybe you can try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUMX(VALUES('Table'[Product]),[Measure])&lt;/LI-CODE&gt;&lt;P&gt;Where [Measure]=&lt;SPAN&gt;IF(SUMX('Table','Table'[Products Bought]) &amp;gt;= 1, 1, 0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 06:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3340133#M125343</guid>
      <dc:creator>mlsx4</dc:creator>
      <dc:date>2023-07-20T06:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sumx not calculating the grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3340154#M125346</link>
      <description>&lt;P&gt;Thank you very much! Worked like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 07:08:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sumx-not-calculating-the-grand-total/m-p/3340154#M125346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-20T07:08:11Z</dc:date>
    </item>
  </channel>
</rss>

