<?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: Count of records with specific values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50018#M28463</link>
    <description>Thanks Jim for answering all my queries. You have been very helpful.</description>
    <pubDate>Tue, 23 Jan 2018 07:32:29 GMT</pubDate>
    <dc:creator>Rini_Kar</dc:creator>
    <dc:date>2018-01-23T07:32:29Z</dc:date>
    <item>
      <title>Count of records with specific values</title>
      <link>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50016#M28461</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a project where I have ID and attendance indicator for each ID (0 - Attended, 2 - Non - Attendance). I need to calculate the cumulative non - attendance rate as shown below. I need to know cumulative count of Non - attendance and divide by total count of that ID. This needs to be calculated on cumulative basis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if anyone can help me with a formula / script to accomplish this.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Attendance Indicator&lt;/TD&gt;&lt;TD&gt;No - Show rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;25%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X_3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;66%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 23 Jan 2018 06:13:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50016#M28461</guid>
      <dc:creator>Rini_Kar</dc:creator>
      <dc:date>2018-01-23T06:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count of records with specific values</title>
      <link>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50017#M28462</link>
      <description>&lt;P&gt;Here is a formula that will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum( If( :Attendance indicator == 2, 1, 0 ), :ID ) /
Col Cumulative Sum( 1, :ID )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jan 2018 07:08:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50017#M28462</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-23T07:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count of records with specific values</title>
      <link>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50018#M28463</link>
      <description>Thanks Jim for answering all my queries. You have been very helpful.</description>
      <pubDate>Tue, 23 Jan 2018 07:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-of-records-with-specific-values/m-p/50018#M28463</guid>
      <dc:creator>Rini_Kar</dc:creator>
      <dc:date>2018-01-23T07:32:29Z</dc:date>
    </item>
  </channel>
</rss>

