<?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 Hide and exclude rows in data table if criteria is met in one column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17085#M15585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Hello, All&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;I am trying to hide and exclude all rows in a data table, that do not meet a given criteria. Such criteria is given by the values in one of the columns [:Hour].&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;I applied the formula to another column, but only worked within the cells of that column, and not the entire data table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: times new roman,times;"&gt;This is the script I am using [which is not working for the entire data table]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="_jivemacro_uid_14560045349874519 jive_macro_code jive_text_macro" jivemacro_uid="_14560045349874519" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;dt = Current Data Table();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If( :Hour == 6,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &amp;lt;&amp;lt; As Row State( 0 ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &amp;lt;&amp;lt; As Row State( 7 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Any help will be appreciated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: times new roman,times;"&gt;Jose GL&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Feb 2016 21:45:01 GMT</pubDate>
    <dc:creator>gutloja</dc:creator>
    <dc:date>2016-02-20T21:45:01Z</dc:date>
    <item>
      <title>Hide and exclude rows in data table if criteria is met in one column</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17085#M15585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Hello, All&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;I am trying to hide and exclude all rows in a data table, that do not meet a given criteria. Such criteria is given by the values in one of the columns [:Hour].&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;I applied the formula to another column, but only worked within the cells of that column, and not the entire data table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: times new roman,times;"&gt;This is the script I am using [which is not working for the entire data table]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="_jivemacro_uid_14560045349874519 jive_macro_code jive_text_macro" jivemacro_uid="_14560045349874519" modifiedtitle="true"&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;dt = Current Data Table();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If( :Hour == 6,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &amp;lt;&amp;lt; As Row State( 0 ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt &amp;lt;&amp;lt; As Row State( 7 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: times new roman,times; font-size: 12pt;"&gt;Any help will be appreciated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: times new roman,times;"&gt;Jose GL&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 21:45:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17085#M15585</guid>
      <dc:creator>gutloja</dc:creator>
      <dc:date>2016-02-20T21:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and exclude rows in data table if criteria is met in one column</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17086#M15586</link>
      <description>&lt;P&gt;I believe this will do what you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt =Current Data Table();
dt &amp;lt;&amp;lt; select where( :Hour != 6 );
dt &amp;lt;&amp;lt; hide and exclude;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Consolas;"&gt;You could loop through each of the rows and perform you If() function, excluding and hiding each row one at a time, but the above method works much faster and works on the entire data table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:13:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17086#M15586</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-13T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and exclude rows in data table if criteria is met in one column</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17087#M15587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked like a charm.&lt;/P&gt;&lt;P&gt;At the end of my script, I can just run it again and everything goes back to normal yay!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JoseGL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 16:39:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-exclude-rows-in-data-table-if-criteria-is-met-in-one/m-p/17087#M15587</guid>
      <dc:creator>gutloja</dc:creator>
      <dc:date>2016-02-21T16:39:26Z</dc:date>
    </item>
  </channel>
</rss>

