<?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 Count(Rows Selected) &amp;amp; quickly summarize categories (under one or two columns) of rows selected. [1] in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41932#M24461</link>
    <description>&lt;P&gt;I have two columns selected once a graph launches (those categorical columns are on the X axis). As a user selects different points over the graph, specific rows are selected (like in normal graphing).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to do the following things:&lt;/P&gt;&lt;P&gt;1) Count number of rows selected&lt;/P&gt;&lt;P&gt;2) Identify what category (X coordinate) is selected on the graph (since only one will be selected at a time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm amazed at how much difficulty I'm having with such a simple thing. I keep looking at the scripting index but to no avail.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 16:51:29 GMT</pubDate>
    <dc:creator>agonzales2021</dc:creator>
    <dc:date>2017-07-13T16:51:29Z</dc:date>
    <item>
      <title>Count(Rows Selected) &amp; quickly summarize categories (under one or two columns) of rows selected. [1]</title>
      <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41932#M24461</link>
      <description>&lt;P&gt;I have two columns selected once a graph launches (those categorical columns are on the X axis). As a user selects different points over the graph, specific rows are selected (like in normal graphing).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to do the following things:&lt;/P&gt;&lt;P&gt;1) Count number of rows selected&lt;/P&gt;&lt;P&gt;2) Identify what category (X coordinate) is selected on the graph (since only one will be selected at a time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm amazed at how much difficulty I'm having with such a simple thing. I keep looking at the scripting index but to no avail.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:51:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41932#M24461</guid>
      <dc:creator>agonzales2021</dc:creator>
      <dc:date>2017-07-13T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Rows Selected) &amp; quickly summarize categories (under one or two columns) of rows selec</title>
      <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41939#M24467</link>
      <description>&lt;P&gt;Here is a simple script that shows one way to handle the questions you ask&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

dt &amp;lt;&amp;lt; bivariate( x( :height ), y( :weight ) );

dt &amp;lt;&amp;lt; select rows( {2, 4, 6} );

Show( N Rows( dt &amp;lt;&amp;lt; get selected rows ) );
Show( dt:height[(dt &amp;lt;&amp;lt; get selected rows)[1]] );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:28:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41939#M24467</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-07-13T17:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Rows Selected) &amp; quickly summarize categories (under one or two columns) of rows selec</title>
      <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41943#M24471</link>
      <description>&lt;P&gt;See Help &amp;gt; Scripting Index &amp;gt; Objects &amp;gt; Data Table &amp;gt; Make Row State Handler&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:51:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41943#M24471</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-07-13T17:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Rows Selected) &amp; quickly summarize categories (under one or two columns) of rows selec</title>
      <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41944#M24472</link>
      <description>&lt;P&gt;Always coming to my aid! Thank you so much&amp;nbsp;Jim. This is perfect and exactly what I needed. Reading a little more on this to see what else I can do :D&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:55:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41944#M24472</guid>
      <dc:creator>agonzales2021</dc:creator>
      <dc:date>2017-07-13T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Rows Selected) &amp; quickly summarize categories (under one or two columns) of rows selec</title>
      <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41945#M24473</link>
      <description>&lt;P&gt;And thank YOU for this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading about the Row state handler too as I'm pretty sure I can use this in another similar issue I was having :D&lt;/img&gt; You guys rock!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:56:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41945#M24473</guid>
      <dc:creator>agonzales2021</dc:creator>
      <dc:date>2017-07-13T17:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Rows Selected) &amp; quickly summarize categories (under one or two columns) of rows selec</title>
      <link>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41946#M24474</link>
      <description>&lt;P&gt;I do have one last followup question though based on the solution you gave me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In VBA for example there is a function 'countif' where I can specify for a range of cells (N Rows in my case) and count the occurrences of a given item in that column.&lt;/P&gt;&lt;P&gt;I can think of many ways to do this but most of them involve summaries. So say I use that second command you gave me Jim to figure out what element of X is selected. How can I then count the total occurrences of this in the table? (I know that's redundant but like I said there are two x variables and they are linked: months and weeks, so if I select a month, several weeks get selected, etc).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could I use something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;r = Current Data Table() &amp;lt;&amp;lt; get rows where( :height == 60 );&lt;/P&gt;&lt;P&gt;:name[r[Contains( :sex, :sex )]]; followed by the count you suggested?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 18:07:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-Rows-Selected-amp-quickly-summarize-categories-under-one/m-p/41946#M24474</guid>
      <dc:creator>agonzales2021</dc:creator>
      <dc:date>2017-07-13T18:07:24Z</dc:date>
    </item>
  </channel>
</rss>

