<?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 I generate a numbering column that resets based on other column values? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540334#M76097</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;! This is very nearly what I wanted, thank you so much! I just had to create a concatenate column with Wetland Code and Date (called Sampling Code) to pick up when the site or date changed but the other variable stayed the same and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum( If( Row() == Col Min( Row(), &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;:Date, &lt;/SPAN&gt;&lt;/SPAN&gt;:Latitude, :Longitude ), 1, 0 ), :Sampling Code )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks so much again for the help :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Sep 2022 21:44:10 GMT</pubDate>
    <dc:creator>WetlandWoman</dc:creator>
    <dc:date>2022-09-03T21:44:10Z</dc:date>
    <item>
      <title>How do I generate a numbering column that resets based on other column values?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540284#M76094</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to generate a column that will count the quadrats (single sample area) for a given site on a particular date. I have a Site Code column and a Date column, as well as Latitude and Longitude columns, where a change in latitude and/or longitude equals a new quadrat for that site. Within each quadrat all species were sampled, meaning each row with the same site, date, latitude and longitude has a new species code. I have been able to create a rank column that resets when these four columns change (i.e. site code, date, latitude and longitude) which gives me a count of the number of species that were found at each quadrat. Is there a way to use any of these columns to auto-number when a quadrat changes (integer starting at 1 and increasing by 1) in a site and resets the numbering when the site and/or date changes. I have attached an example file with a subset of my data, and a column called Quadrat that I manually populated with what I am trying to achieve.&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-center" image-alt="Quadrat Screenshot.jpg" style="width: 922px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45165i54E109317F67EF6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Quadrat Screenshot.jpg" alt="Quadrat Screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using JMP version 16.2.0.&amp;nbsp;&lt;SPAN&gt;Thank you so much in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:53:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540284#M76094</guid>
      <dc:creator>WetlandWoman</dc:creator>
      <dc:date>2023-06-10T23:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a numbering column that resets based on other column values?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540331#M76096</link>
      <description>&lt;P&gt;I think you could use something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum(If(Row() == Col Min(Row(), :Date, :Latitude, :Longitude), 1, 0), :Wetland Code)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1662226676297.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45166i879FA0060CE699D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1662226676297.png" alt="jthi_0-1662226676297.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 17:38:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540331#M76096</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-03T17:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a numbering column that resets based on other column values?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540334#M76097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;! This is very nearly what I wanted, thank you so much! I just had to create a concatenate column with Wetland Code and Date (called Sampling Code) to pick up when the site or date changed but the other variable stayed the same and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum( If( Row() == Col Min( Row(), &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;:Date, &lt;/SPAN&gt;&lt;/SPAN&gt;:Latitude, :Longitude ), 1, 0 ), :Sampling Code )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks so much again for the help :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 21:44:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-generate-a-numbering-column-that-resets-based-on-other/m-p/540334#M76097</guid>
      <dc:creator>WetlandWoman</dc:creator>
      <dc:date>2022-09-03T21:44:10Z</dc:date>
    </item>
  </channel>
</rss>

