<?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 use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269476#M52463</link>
    <description>&lt;P&gt;I just want to add how do know if need to do the calculation what's the better way to do it?&lt;BR /&gt;When the number of columns is small, I use this method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sum(if(abs(As Column(11))&amp;gt;=0,1),if(abs(As Column(12))&amp;gt;=0,1),if(abs(As Column(13))&amp;gt;=0,1),if(abs(As Column(14))&amp;gt;=0,1),if(abs(As Column(15))&amp;gt;=0,1))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 23:26:53 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2020-05-28T23:26:53Z</dc:date>
    <item>
      <title>How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269313#M52432</link>
      <description>&lt;P&gt;If a data table has more than 100 columns.Given that columns 11 -- 100 are in numeric format, how can use JSL to quickly filter out all rows in column 11 -- 100 that are not null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 09:07:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269313#M52432</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-05-28T09:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269314#M52433</link>
      <description>&lt;P&gt;&lt;SPAN class="transSent"&gt;I see that this is a way to sum multiple columns in the same row.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sumVec = (VSum(mat`))`;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="transSent"&gt;I want to do this, but I don't know how to figure out the number of non-null columns in the same row in this way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="transSent"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
mat = dt[0, 11 :: 100];
nu = (Number( mat` ))`;
dt &amp;lt;&amp;lt; New Column( "text", Numeric, Continuous, Values( nu ) );

dt &amp;lt;&amp;lt; Select Where( :text == 90 );
d3 = dt &amp;lt;&amp;lt; Subset( Output Table( "t" ), Selected Rows( 1 ), selected columns( 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 09:25:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269314#M52433</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-05-28T09:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269320#M52434</link>
      <description>&lt;P&gt;No Number was found.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-28_17-30.png" style="width: 354px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24208i0895EFC99C330C30/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-05-28_17-30.png" alt="2020-05-28_17-30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 09:32:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269320#M52434</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-05-28T09:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269332#M52436</link>
      <description>&lt;P&gt;This should give you what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
dt &amp;lt;&amp;lt; select where( Number( dt[Row(), Index( 11, 100 )] ) == 90 );
d3 = dt &amp;lt;&amp;lt; Subset( Output Table( "t" ), Selected Rows( 1 ), selected columns( 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 May 2020 10:37:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269332#M52436</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-28T10:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269343#M52440</link>
      <description>&lt;P&gt;Thank Jim!&lt;BR /&gt;This is an efficient way to do it.&lt;BR /&gt;How can do add a new column to the table and count the number of columns in row 11-100 that are not null?&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 11:53:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269343#M52440</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-05-28T11:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269367#M52446</link>
      <description>&lt;OL&gt;
&lt;LI&gt;I know you know how to add a column to a data table&lt;/LI&gt;
&lt;LI&gt;You were just shown how to find rows that are not null&lt;/LI&gt;
&lt;LI&gt;So I must not be understanding what you are asking&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 28 May 2020 14:18:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269367#M52446</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-28T14:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269476#M52463</link>
      <description>&lt;P&gt;I just want to add how do know if need to do the calculation what's the better way to do it?&lt;BR /&gt;When the number of columns is small, I use this method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sum(if(abs(As Column(11))&amp;gt;=0,1),if(abs(As Column(12))&amp;gt;=0,1),if(abs(As Column(13))&amp;gt;=0,1),if(abs(As Column(14))&amp;gt;=0,1),if(abs(As Column(15))&amp;gt;=0,1))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 23:26:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269476#M52463</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-05-28T23:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269477#M52464</link>
      <description>&lt;P&gt;Just for clarification,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Number( dt[Row(), Index( 11, 15 )] )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will not give you the same results as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sum(if(abs(As Column(11))&amp;gt;=0,1),if(abs(As Column(12))&amp;gt;=0,1),if(abs(As Column(13))&amp;gt;=0,1),if(abs(As Column(14))&amp;gt;=0,1),if(abs(As Column(15))&amp;gt;=0,1))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The first equation will give you the count of non blank(null) values, while the second equation gives you the count of non zero values.&lt;/P&gt;
&lt;P&gt;Additionally, a simpler version of the second equation is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Sum( As Column( 11 ) != 0, As Column( 12 ) != 0, As Column( 13 ) != 0, As Column( 14 ) != 0, As Column( 15 ) != 0 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 May 2020 00:26:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269477#M52464</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-29T00:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269539#M52479</link>
      <description>&lt;P&gt;Thank Jim!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried. They're equivalent.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Number( dt[Row(), Index( 11, 15 )] ==5)

sum(if(abs(As Column(11))&amp;gt;=0,1),if(abs(As Column(12))&amp;gt;=0,1),if(abs(As Column(13))&amp;gt;=0,1),if(abs(As Column(14))&amp;gt;=0,1),if(abs(As Column(15))&amp;gt;=0,1))==5&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is for non-null values, not non-zero values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-29_12-52.png" style="width: 998px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24231i43D8958AD4AFF6E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-05-29_12-52.png" alt="2020-05-29_12-52.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 10:51:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269539#M52479</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-05-29T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to quickly filter out all the rows in a data table with multi-column values that are not empty?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269543#M52480</link>
      <description>&lt;P&gt;You are correct....my error&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 11:06:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-quickly-filter-out-all-the-rows-in-a-data/m-p/269543#M52480</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-29T11:06:24Z</dc:date>
    </item>
  </channel>
</rss>

