<?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: Automatic local data filter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/284017#M54872</link>
    <description>&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd function was what I was searching for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 11:14:13 GMT</pubDate>
    <dc:creator>Brad_Park</dc:creator>
    <dc:date>2020-08-04T11:14:13Z</dc:date>
    <item>
      <title>Automatic local data filter</title>
      <link>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283198#M54792</link>
      <description>&lt;P&gt;Hello, everyone,&lt;/P&gt;&lt;P&gt;Could you please give me your hand to solve problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The situation&lt;BR /&gt;I am trying to make a script to automate drawing graphs every day.&lt;/P&gt;&lt;P&gt;This is a situation that I need to create data for each equipment station daily used.&lt;BR /&gt;Meanwhile, as the number of stations is large (ex. there's 40 stations), I cannot plot all of station in one graph. So I select three stations on one graph with local data filter.&lt;/P&gt;&lt;P&gt;However, as the used equipment station changes every day,&lt;/P&gt;&lt;P&gt;I cannot use code like below,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Local Data Filter(&lt;BR /&gt;Width( 178 ),&lt;BR /&gt;Add Filter(&lt;BR /&gt;columns( :Station ),&lt;BR /&gt;Where( :Station == {"Tx #5", "Tx #6", "Tx #7"} ),&lt;BR /&gt;Display( :Station, Size( 172, 493 ), Height( 493))&lt;BR /&gt;)&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Designed Solution&lt;/P&gt;&lt;P&gt;So I came up with the following method.&lt;BR /&gt;&amp;nbsp; 1. select the Station column.&lt;BR /&gt;&amp;nbsp; 2. Make the column as a list&lt;BR /&gt;&amp;nbsp; 3. Remove duplicate values ​​from the list. (-&amp;gt;To get a list of used stations)&lt;BR /&gt;&amp;nbsp; 4. Use the local data filter to select 3 stations from the list obtained in step 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Problem&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. Station column is selected and I made it into a list, but duplicates are not removed.&lt;BR /&gt;&amp;nbsp; 2. I have no idea how to apply the local data filter for each 3 stations in the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;-Sejin Park.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:33:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283198#M54792</guid>
      <dc:creator>Brad_Park</dc:creator>
      <dc:date>2023-06-09T23:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic local data filter</title>
      <link>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283216#M54794</link>
      <description>&lt;P&gt;You need to use the Summarize() function. If you specify your column as the By() column, it will return a list of unique values for Stations&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;summarize( stationList = By( :Station ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 13:22:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283216#M54794</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-31T13:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic local data filter</title>
      <link>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283978#M54864</link>
      <description>&lt;P&gt;Hi Jim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is Brad Park.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've try to use it but somehow, I forgot how to make the list of value of specific column...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a list of row (of specified column) with a each row () function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me if there's better way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 03:20:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283978#M54864</guid>
      <dc:creator>Brad_Park</dc:creator>
      <dc:date>2020-08-04T03:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic local data filter</title>
      <link>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283981#M54865</link>
      <description>&lt;P&gt;I am not quite sure what your question is, but let me make a guess.&amp;nbsp; You want to get either, all of the values from a column into a list, or you want to get all of the unique values from a column into a list.&amp;nbsp; Below there are 2 examples, one that will read all values into a list, and the second example will get only the unique values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

// Get all values from a column
allValueList = dt:sex &amp;lt;&amp;lt; get values;

// get unique values
summarize( dt, uniqueValueList = by(:sex));

// Look in the log for the output
Show("All Values", allValueList, "Unique Values", uniqueValueList); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 03:41:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/283981#M54865</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-04T03:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic local data filter</title>
      <link>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/284017#M54872</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd function was what I was searching for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 11:14:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatic-local-data-filter/m-p/284017#M54872</guid>
      <dc:creator>Brad_Park</dc:creator>
      <dc:date>2020-08-04T11:14:13Z</dc:date>
    </item>
  </channel>
</rss>

