<?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 exlude SUM of zero in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916464#M41500</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about creating several measures:&lt;/P&gt;&lt;P&gt;1 measure to calculate the sum for the data, such as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Data:= SUM(table[Data])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 measure to count the number of total greater than 0, such as&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Not Null Count := COUNTX('Calendar'[Date], [Total Data] &amp;gt;0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 measures to do the division:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Average Data:= DIVIDE([Total Data], [Not Null Count])&lt;/LI-CODE&gt;&lt;P&gt;I think that should work if my assumption are correct:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You have a date table,&lt;/LI&gt;&lt;LI&gt;You use the measure average data in your matrix.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 06:11:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-23T06:11:34Z</dc:date>
    <item>
      <title>How to exlude SUM of zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916172#M41488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a measure SUM (0+0+0+0.6+0.6+0.6...) divided by COUNT of dates.&lt;/P&gt;&lt;P&gt;The question is how to exclude those dates when summary equals 0.00 from this calculations?&lt;/P&gt;&lt;P&gt;Currently it calculates: 4.2 / 12 = 0.35&lt;/P&gt;&lt;P&gt;I need it to calculate: 4.2 / 7 = 0.6&lt;/P&gt;&lt;P&gt;the reason 0.00 is showing for some dates is because in the data there is 0.6 but later on there was another data added with -0.6 for those dates. Hence below we see the summary.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 02:55:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916172#M41488</guid>
      <dc:creator>Masha</dc:creator>
      <dc:date>2021-06-23T02:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to exlude SUM of zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916331#M41495</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308799" data-lia-user-login="Masha" class="lia-mention lia-mention-user"&gt;Masha&lt;/a&gt; , Have you used show item with no data, because I can see blank too &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually, we do like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if([Meausre] =0.0 ,blank(), [measure])&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 04:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916331#M41495</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-06-23T04:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to exlude SUM of zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916415#M41498</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, but sadly it doesn't work, because in the data it is 0.6-0.6 and in the report it's displayed as 0.00&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 05:52:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916415#M41498</guid>
      <dc:creator>Masha</dc:creator>
      <dc:date>2021-06-23T05:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to exlude SUM of zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916464#M41500</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about creating several measures:&lt;/P&gt;&lt;P&gt;1 measure to calculate the sum for the data, such as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Data:= SUM(table[Data])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 measure to count the number of total greater than 0, such as&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Not Null Count := COUNTX('Calendar'[Date], [Total Data] &amp;gt;0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 measures to do the division:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Average Data:= DIVIDE([Total Data], [Not Null Count])&lt;/LI-CODE&gt;&lt;P&gt;I think that should work if my assumption are correct:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You have a date table,&lt;/LI&gt;&lt;LI&gt;You use the measure average data in your matrix.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 06:11:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1916464#M41500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-23T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to exlude SUM of zero</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1919824#M41610</link>
      <description>&lt;P&gt;Thank you all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not make it work in DAX. I amended it at the data level: grouped and filtered out zero. That worked&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 10:58:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-exlude-SUM-of-zero/m-p/1919824#M41610</guid>
      <dc:creator>Masha</dc:creator>
      <dc:date>2021-06-24T10:58:33Z</dc:date>
    </item>
  </channel>
</rss>

