<?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 to get new column to populate cycles in large data set for multiple cycles on the same sample? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/873017#M103738</link>
    <description>&lt;P&gt;Thank you so much Jim!&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 11:53:38 GMT</pubDate>
    <dc:creator>WeightedMarten3</dc:creator>
    <dc:date>2025-05-13T11:53:38Z</dc:date>
    <item>
      <title>How to get new column to populate cycles in large data set for multiple cycles on the same sample?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872921#M103723</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some very large data sets (&amp;gt;1million rows) of numerous samples that have been tested in a cyclical fashion. The same sample has gone through 100's of cycles and I'm hoping to find a way to quickly add the cycles to my data table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The test starts at zero displacement and then runs to a peak force (varies depending on which cycle it is) and then returns back to a zero/near-zero value. I'd like a way to add in the cycle without having to manually scroll through millions of rows of data adding cycles.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 18:28:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872921#M103723</guid>
      <dc:creator>WeightedMarten3</dc:creator>
      <dc:date>2025-05-12T18:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get new column to populate cycles in large data set for multiple cycles on the same sample?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872933#M103724</link>
      <description>&lt;P&gt;In your data it seems like you could just use Sample to determine the cycle?&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 18:50:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872933#M103724</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-12T18:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get new column to populate cycles in large data set for multiple cycles on the same sample?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872958#M103729</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each sample has numerous cycles of compression/decompression in them (100's) and I'm hoping to find a way to break down each Sample # into each cycle within that sample.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 22:21:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872958#M103729</guid>
      <dc:creator>WeightedMarten3</dc:creator>
      <dc:date>2025-05-12T22:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get new column to populate cycles in large data set for multiple cycles on the same sample?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872975#M103731</link>
      <description>&lt;P&gt;I added this formula to the Cycles column.&amp;nbsp; It increments the Cycle number each time it detects a change from decreasing values, to increasing values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( x = 1 );
If( :Sample != Lag( :Sample ),
	x = 1
);
If( Lag( :Compression ) &amp;gt; :Compression &amp;amp; Lag( :Compression, -1 ) &amp;gt; :Compression,
	x = x + 1
);
x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Below is a graph where I have created a local data filter, which is set to only display cycles 3,4 and 5 from sample 3.&amp;nbsp; I believe this is what you are looking for&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1747101042039.png" style="width: 797px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75765i5592F52A2448AE5D/image-dimensions/797x482?v=v2" width="797" height="482" role="button" title="txnelson_1-1747101042039.png" alt="txnelson_1-1747101042039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 01:50:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/872975#M103731</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-05-13T01:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get new column to populate cycles in large data set for multiple cycles on the same sample?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/873017#M103738</link>
      <description>&lt;P&gt;Thank you so much Jim!&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 11:53:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-new-column-to-populate-cycles-in-large-data-set-for/m-p/873017#M103738</guid>
      <dc:creator>WeightedMarten3</dc:creator>
      <dc:date>2025-05-13T11:53:38Z</dc:date>
    </item>
  </channel>
</rss>

