<?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 Split Function overwritting values? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370870#M62070</link>
    <description>&lt;P&gt;I'm attempting to split this table to make it easier for analysis, but data is being overwritten.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most rows in this source table (DT2) only have one set of "Markers" (the column in the picture below, not the JMP marking function). But, the CD3+ has 2 sets of 3, totaling 6 distinct data points, as shown in the picture below with yellow (with the same lot number and instruments). I would expect the split function (dt3 = dt2 &amp;lt;&amp;lt; Split( Split( :Results ), Split By( :Marker ), Group( :Lot Number, :Instrument ));) to treat the additional set separately and add 6 lines in the new Table, but it overwrites the first set and only shows 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a special function that would work better? A line of code I'm missing in the split? or a work around? Any help would be greatly appreciated!!!!&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="ERoderz_0-1616546602725.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31492i4B6D2914EB59B203/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ERoderz_0-1616546602725.png" alt="ERoderz_0-1616546602725.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:27:41 GMT</pubDate>
    <dc:creator>ERoderz</dc:creator>
    <dc:date>2023-06-10T23:27:41Z</dc:date>
    <item>
      <title>Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370870#M62070</link>
      <description>&lt;P&gt;I'm attempting to split this table to make it easier for analysis, but data is being overwritten.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most rows in this source table (DT2) only have one set of "Markers" (the column in the picture below, not the JMP marking function). But, the CD3+ has 2 sets of 3, totaling 6 distinct data points, as shown in the picture below with yellow (with the same lot number and instruments). I would expect the split function (dt3 = dt2 &amp;lt;&amp;lt; Split( Split( :Results ), Split By( :Marker ), Group( :Lot Number, :Instrument ));) to treat the additional set separately and add 6 lines in the new Table, but it overwrites the first set and only shows 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a special function that would work better? A line of code I'm missing in the split? or a work around? Any help would be greatly appreciated!!!!&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="ERoderz_0-1616546602725.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31492i4B6D2914EB59B203/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ERoderz_0-1616546602725.png" alt="ERoderz_0-1616546602725.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:27:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370870#M62070</guid>
      <dc:creator>ERoderz</dc:creator>
      <dc:date>2023-06-10T23:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370907#M62075</link>
      <description>Hi,&lt;BR /&gt;I think that you problem is that you have multiple rows with the same combination of Marker, Lot Number, and Instrument: JMP does not know that these are actually different items so it tends to take the first instance of the specific combination of columns to populate the Split Table.&lt;BR /&gt;Hence, you will need to create an identifier that distinguish between rows 13 - 15 and rows 22 - 24 in your example. Let me know if you need help with the creation of column formula that will create such identifiers.&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Wed, 24 Mar 2021 04:51:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370907#M62075</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-03-24T04:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370926#M62078</link>
      <description>&lt;P&gt;I think you also need to add the col "Marker" to the group role. Then you get more rows.&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="Georg_0-1616565429942.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31496iC4A4A1001158E12B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1616565429942.png" alt="Georg_0-1616565429942.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 05:57:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/370926#M62078</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-03-24T05:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371084#M62094</link>
      <description>That explodes the data table and doesn't contain the format I need. Most cells now are empty with that approach.</description>
      <pubDate>Wed, 24 Mar 2021 14:53:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371084#M62094</guid>
      <dc:creator>ERoderz</dc:creator>
      <dc:date>2021-03-24T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371085#M62095</link>
      <description>That would make sense. So add an additional column like "Data Point #" or something. What formula did you have in mind TS?</description>
      <pubDate>Wed, 24 Mar 2021 14:54:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371085#M62095</guid>
      <dc:creator>ERoderz</dc:creator>
      <dc:date>2021-03-24T14:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371096#M62098</link>
      <description>&lt;P&gt;I created a new column called "count" using the following formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;curmark = :Marker;
curlot = :Lot Number;
curins = :Instrument;
currow = Row();
number = N Rows(
	Current Data Table() &amp;lt;&amp;lt; get rows where(
		:Marker == curMark &amp;amp; :Lot Number == curlot &amp;amp; :Instrument == curins &amp;amp; Row() &amp;lt; currow
	)
) + 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I then used it as an additional Grouping variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stack1.PNG" style="width: 537px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31512i5F6E282C20B40D78/image-size/large?v=v2&amp;amp;px=999" role="button" title="stack1.PNG" alt="stack1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and got the following results&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stack2.PNG" style="width: 692px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31513iFC16AD9AB7366144/image-size/large?v=v2&amp;amp;px=999" role="button" title="stack2.PNG" alt="stack2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 15:31:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371096#M62098</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-24T15:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split Function overwritting values?</title>
      <link>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371124#M62103</link>
      <description>&lt;P&gt;Thanks txnelson! That did the trick. Was able to drop that block into the existing script and it ran fine. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 18:22:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Split-Function-overwritting-values/m-p/371124#M62103</guid>
      <dc:creator>ERoderz</dc:creator>
      <dc:date>2021-03-24T18:22:30Z</dc:date>
    </item>
  </channel>
</rss>

