<?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 do can find the number of non-null rows in the specified column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272934#M53089</link>
    <description>&lt;P&gt;probably this script would do it?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

dt = Open( "$SAMPLE_DATA\Missing Data Pattern.jmp" );

x=column(dt, "Trial 4") &amp;lt;&amp;lt; get values();
// y =sum(!is missing(x));
// show(x, y);

y = !is missing(x);
rows = transpose(1::n items(y));
show(max(y :*  rows));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jun 2020 10:29:48 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2020-06-16T10:29:48Z</dc:date>
    <item>
      <title>How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272914#M53081</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Data\Missing Data Pattern.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;the number of non-null rows in the "Trial 3" column of this table is 5,&lt;BR /&gt;and the number of non-null rows in the "Trial 4" column is 4.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-16_17-02.png" style="width: 360px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24613iD0F8C2D053543165/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-16_17-02.png" alt="2020-06-16_17-02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:29:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272914#M53081</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T23:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272917#M53082</link>
      <description>&lt;P&gt;I don't know how to express it in this formula, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Contains(:[Index(1,N Row(dt))],,-1)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 09:24:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272917#M53082</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-06-16T09:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272920#M53083</link>
      <description>&lt;P&gt;There are many ways, one May be this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = Open( "$SAMPLE_DATA\Missing Data Pattern.jmp" );

x=column(dt, "Trial 4") &amp;lt;&amp;lt; get values();
y =sum(!is missing(x));
show(x, y);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2020 09:36:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272920#M53083</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-06-16T09:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272923#M53085</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;I'm not being precise here.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It should be:&lt;BR /&gt;The row number of the last non-null value in the "Trial 3" column is 5,&lt;BR /&gt;The row number of the last non-null value in the "Trial 4" column is 4.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 09:44:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272923#M53085</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-06-16T09:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272925#M53086</link>
      <description>It's equivalent to VBA&lt;BR /&gt;&lt;BR /&gt;Cells(Rows.Count, 4).End(3).Row</description>
      <pubDate>Tue, 16 Jun 2020 09:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272925#M53086</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-06-16T09:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272930#M53087</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I just don't know how to change this particular value into a generic variable form.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-16_18-07.png" style="width: 538px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24614iED5E43C0BEAD976A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-16_18-07.png" alt="2020-06-16_18-07.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 10:10:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272930#M53087</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-06-16T10:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272934#M53089</link>
      <description>&lt;P&gt;probably this script would do it?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

dt = Open( "$SAMPLE_DATA\Missing Data Pattern.jmp" );

x=column(dt, "Trial 4") &amp;lt;&amp;lt; get values();
// y =sum(!is missing(x));
// show(x, y);

y = !is missing(x);
rows = transpose(1::n items(y));
show(max(y :*  rows));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2020 10:29:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272934#M53089</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-06-16T10:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do can find the number of non-null rows in the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272936#M53090</link>
      <description>&lt;P&gt;Thank Georg!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;s4 = Max(
    !Is Missing( Column( 4 ) &amp;lt;&amp;lt; get values() ) :* Transpose(
        1 :: N Items( !Is Missing( Column( 4 ) &amp;lt;&amp;lt; get values() ) )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2020 12:50:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-find-the-number-of-non-null-rows-in-the-specified/m-p/272936#M53090</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-06-16T12:50:43Z</dc:date>
    </item>
  </channel>
</rss>

