<?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: Create a sequence column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401555#M65246</link>
    <description>&lt;P&gt;Don't focus on us at all! Have fun with the grandkids!!!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 23:56:16 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2021-07-15T23:56:16Z</dc:date>
    <item>
      <title>Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401265#M65230</link>
      <description>&lt;P&gt;hello Community&lt;/P&gt;&lt;P&gt;someone can help me with JSL&lt;/P&gt;&lt;P&gt;i need to create a sequence column referred to another data column (as for picture example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(as you can see for each wafer ID item, the data can be variable.... 5/8/4 ecc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gianpaolo_0-1626359906357.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34180i7FD7F08D7ADC4207/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gianpaolo_0-1626359906357.png" alt="gianpaolo_0-1626359906357.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Gianpaolo&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:33:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401265#M65230</guid>
      <dc:creator>gianpaolo</dc:creator>
      <dc:date>2023-06-10T23:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401277#M65232</link>
      <description>&lt;P&gt;There are several previous discussion items that covered this......in the future, please search for known searches first&lt;/P&gt;
&lt;P&gt;Here is one solution for the formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col sum(1, :wafer_id);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jul 2021 14:48:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401277#M65232</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-15T14:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401293#M65233</link>
      <description>&lt;P&gt;Thanks Nelson, for your answer... and sorry if didnt search deep in the other discussions&lt;/P&gt;
&lt;P&gt;just... i miss a thing (probably my question was not well explained... sorry for that).....but i must create a column sequence by JSL... for this i need help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using your suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "Sequence", Formula( Col Sum( 1, :Wafer_ID ) ) );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;i dont optain the sequence1,2,3,... as i reported in the pic..... but i have the max of row&amp;nbsp; of wafer_ID for each wafer data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what i need is to create he sequence column that contain:&lt;/P&gt;
&lt;P&gt;wafer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sequence&lt;/P&gt;
&lt;P&gt;00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;01 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;01 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;
&lt;P&gt;02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;
&lt;P&gt;..... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .......&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 17:16:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401293#M65233</guid>
      <dc:creator>gianpaolo</dc:creator>
      <dc:date>2021-07-15T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401297#M65234</link>
      <description>&lt;P&gt;Here is the formula to do it. You can use it as is in a column or adapt it to your script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.PNG" style="width: 667px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34181i75B6559C58FF26F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.PNG" alt="formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:12:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401297#M65234</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-07-15T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401304#M65235</link>
      <description>&lt;P&gt;In your first entry, you have a column named Wafer_ID, and then in your second entry, in your JSL, you name it just wafer, but you use the name Wafer_ID in the Col Sum() function.&amp;nbsp; The Col Sum() function uses the second element as a By Group, and therefore, it must match what the name of the column you want to use for aggregation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:31:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401304#M65235</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-15T15:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401537#M65241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you will want to use in this case is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum (1, :Wafer_ID )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you use Col Sum ( 1, :Wafer_ID ), you will get several rows of the value "k", where k is # of rows in the given group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this formula works no matter how the table is sorted. Its value says "this is the k-th time I've encountered this value in this dataset, starting from the top." This has application in many other contexts, particularly when creative sorting is involved, and is one of my favorite tricks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 23:23:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401537#M65241</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-07-15T23:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401547#M65243</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;........I have my grandkids at my place, and I am not focusing on the Discussion Forum as clearly as I should.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 23:46:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401547#M65243</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-15T23:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401555#M65246</link>
      <description>&lt;P&gt;Don't focus on us at all! Have fun with the grandkids!!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 23:56:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401555#M65246</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-07-15T23:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a sequence column</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401593#M65253</link>
      <description>&lt;P&gt;Thanks to all for solved my problem. really appreciated :-)!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 05:55:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-sequence-column/m-p/401593#M65253</guid>
      <dc:creator>gianpaolo</dc:creator>
      <dc:date>2021-07-16T05:55:08Z</dc:date>
    </item>
  </channel>
</rss>

