<?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 can I arrange the unique values obtained from a column in the order they appear in the original column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877502#M104019</link>
    <description>&lt;P&gt;You can set the Value Order column property to be Row Order Level&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1748615603448.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76429iD82EAF92F0E8903D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1748615603448.png" alt="txnelson_0-1748615603448.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And then when you use Tables=&amp;gt;Summary the new data table will output in the Row Order&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1748615718771.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76430i14A336811F255A55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1748615718771.png" alt="txnelson_1-1748615718771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 14:35:33 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-05-30T14:35:33Z</dc:date>
    <item>
      <title>How can I arrange the unique values obtained from a column in the order they appear in the original column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877462#M104015</link>
      <description>&lt;DIV data-container=""&gt;&lt;SPAN data-expression=""&gt;When looking for unique values in a column, `summarize()` is often used. However, the values outputted by `summarize()` are sorted, and the output in following JSL would look like this: {"64", "67", "74",..., "172"}. I would like the output to be arranged in the order they appear in the column, for example: {"95", "123", "74",...}. What modification should I make to achieve this result?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV data-container=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV data-container=""&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
summarize(unique_values=by(weight));
show(unique_values)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV data-container=""&gt;
&lt;DIV id="l3-9_1-ConGood" class="OSInline" data-container=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 May 2025 12:40:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877462#M104015</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-05-30T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I arrange the unique values obtained from a column in the order they appear in the original column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877472#M104016</link>
      <description>&lt;P&gt;This should work.&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/Big Class.jmp" );
dt &amp;lt;&amp;lt; Select Duplicate Rows( Match( :weight ) );
dt &amp;lt;&amp;lt; Invert Row Selection;
sl = dt &amp;lt;&amp;lt; Get Selected Rows;
unique_vals = dt:weight[sl];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 May 2025 12:54:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877472#M104016</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-05-30T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I arrange the unique values obtained from a column in the order they appear in the original column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877502#M104019</link>
      <description>&lt;P&gt;You can set the Value Order column property to be Row Order Level&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1748615603448.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76429iD82EAF92F0E8903D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1748615603448.png" alt="txnelson_0-1748615603448.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And then when you use Tables=&amp;gt;Summary the new data table will output in the Row Order&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1748615718771.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76430i14A336811F255A55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1748615718771.png" alt="txnelson_1-1748615718771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 14:35:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877502#M104019</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-05-30T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I arrange the unique values obtained from a column in the order they appear in the original column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877575#M104025</link>
      <description>&lt;P&gt;Summary table with transform column of row() is one more option (and there are plenty more)&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_summary = dt &amp;lt;&amp;lt; Summary(
	Group(:weight),
	Min(Transform Column("Row", Formula(Row()))),
	Freq("None"),
	Weight("None"),
	statistics column name format("column"),
	private
);

dt_summary &amp;lt;&amp;lt; Sort(By(:Row), Replace Table, Order(Ascending));
unique = dt_summary[0, 1];
Close(dt_summary, no save);

show(unique);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 May 2025 14:11:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-arrange-the-unique-values-obtained-from-a-column-in/m-p/877575#M104025</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-31T14:11:13Z</dc:date>
    </item>
  </channel>
</rss>

