<?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 calculate zero portion in % in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68861#M34944</link>
    <description>&lt;P&gt;I think this might do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Is Missing( :Value ) == 0,
	Col Sum( If( :Value == 0, 1, :Value &amp;gt; 0, 0, . ), :SubGroup ) / Col Number( :Value, :SubGroup ),
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Aug 2018 13:47:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-08-20T13:47:46Z</dc:date>
    <item>
      <title>How to calculate zero portion in %</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68851#M34938</link>
      <description>&lt;P&gt;What is the best way to create on formula column, which shows the portion in percent of values = 0 (Zero portion)?&lt;/P&gt;&lt;P&gt;In case the value column is empty, no portion value should be display in the formula column.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 11:31:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68851#M34938</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-20T11:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate zero portion in %</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68854#M34940</link>
      <description>&lt;P&gt;I am not exactly sure what you are looking for, but if you want to know the portion of the data table that contain zeros, I have included a couple of formulas that will do that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zeroportion.GIF" style="width: 413px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12101i850FEB54A08B83ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="zeroportion.GIF" alt="zeroportion.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 12:34:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68854#M34940</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-20T12:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate zero portion in %</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68856#M34942</link>
      <description>&lt;P&gt;Thanks for your fast response.&lt;/P&gt;
&lt;P&gt;I'm looking for formula which shows the portion of the vaule 0 only. Additional if the cell of the source is empty, the cell for the corresponding portion value should be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m able to achieve this with the formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Is Missing( :Value ) == 0,
            Col Sum( If( :Value == 0, 1, :Value &amp;gt; 0, 0, . ) ) / Col Number( :Value ),
            .
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Despite getting the right result, I am wondering whether there is a better way to solve this. In particular with regards to apply this formula to sub groups.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 14:01:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68856#M34942</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-20T14:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate zero portion in %</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68861#M34944</link>
      <description>&lt;P&gt;I think this might do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Is Missing( :Value ) == 0,
	Col Sum( If( :Value == 0, 1, :Value &amp;gt; 0, 0, . ), :SubGroup ) / Col Number( :Value, :SubGroup ),
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Aug 2018 13:47:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68861#M34944</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-20T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate zero portion in %</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68863#M34946</link>
      <description>&lt;P&gt;Thanks again for yor fast reply.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 13:57:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-zero-portion-in/m-p/68863#M34946</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-20T13:57:44Z</dc:date>
    </item>
  </channel>
</rss>

