<?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: counting rows based on values in another column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11745#M11249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for these responses. Is there any way to do this within a column formula?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 14:56:19 GMT</pubDate>
    <dc:creator>dwaterson</dc:creator>
    <dc:date>2015-04-09T14:56:19Z</dc:date>
    <item>
      <title>counting rows based on values in another column</title>
      <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11742#M11246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a column that defines a grouping, like a column called 'gender' that contains the values 'male' and 'female'. I want to know how many rows in the dataset = 'male' and how many rows in the dataset = 'female'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 17:09:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11742#M11246</guid>
      <dc:creator>dwaterson</dc:creator>
      <dc:date>2015-04-02T17:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: counting rows based on values in another column</title>
      <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11743#M11247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dt = current data table();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where(:Gender == "male");&lt;/P&gt;&lt;P&gt;male = nrows(dt &amp;lt;&amp;lt; Get Selected rows());&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where(:Gender == "female");&lt;/P&gt;&lt;P&gt;female = nrows(dt &amp;lt;&amp;lt; Get Selected rows());&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:37:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11743#M11247</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2015-04-03T17:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: counting rows based on values in another column</title>
      <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11744#M11248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG&gt;Tables &amp;gt; Summary&lt;/STRONG&gt;.&amp;nbsp; Here's a JSL version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;open&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"$sample_data/Big Class.jmp"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Summary&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; Group&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;sex &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; N &lt;STRONG&gt;);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's also the SUMMARIZE command in JSL.&amp;nbsp; You need a numeric column to get this to work though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;summarize&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;gsex &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; by&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;sex&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt; gcount &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;height&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;gcount&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;&lt;STRONG&gt;[18, 22]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:11:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11744#M11248</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2015-04-03T18:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: counting rows based on values in another column</title>
      <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11745#M11249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for these responses. Is there any way to do this within a column formula?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:56:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11745#M11249</guid>
      <dc:creator>dwaterson</dc:creator>
      <dc:date>2015-04-09T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: counting rows based on values in another column</title>
      <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11746#M11250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Col Number(Row(), :Gender)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:14:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11746#M11250</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-04-09T15:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: counting rows based on values in another column</title>
      <link>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11747#M11251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This helped me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 02:04:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/counting-rows-based-on-values-in-another-column/m-p/11747#M11251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-09T02:04:00Z</dc:date>
    </item>
  </channel>
</rss>

