<?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: Copying Row values to other Column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421238#M67008</link>
    <description>&lt;P&gt;Here is my way of handling the issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtraw &amp;lt;&amp;lt; New Column( "ChipID",
	Character,
	Formula(
		If( :SerialNumber != "",
			hold = :SerialNumber
		);
		hold;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Sep 2021 08:56:43 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-09-27T08:56:43Z</dc:date>
    <item>
      <title>Copying Row values to other Column</title>
      <link>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421224#M67006</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me I'm stuck when putting a formula into other column.&lt;/P&gt;&lt;P&gt;Here is expected output if SerialNumber is not empty copy row to Column ChipID else copy the same SN.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 217px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36086i6FC0C1DE63BD1902/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtraw &amp;lt;&amp;lt; New Column("ChipID", Character, Formula(
For( i = 1, i &amp;lt;= N Rows(dtraw), i++,
	If( Is Missing( :SerialNumber),
		:ChipID[i] = (:SerialNumber[1] &amp;amp; i = 1),
		:SerialNumber
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:37:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421224#M67006</guid>
      <dc:creator>JeffO</dc:creator>
      <dc:date>2023-06-10T23:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copying Row values to other Column</title>
      <link>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421233#M67007</link>
      <description>&lt;P&gt;You can use Lag() function here.&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 = New Table("Untitled 6",
	Add Rows(6),
	New Column("SerialNumber", Character, "Nominal", Set Values({"30_A0_0", "", "", "30_A0_01", "", ""}))
);
dt &amp;lt;&amp;lt; New Column("ChipID", Character, Nominal, Formula(If(Is Missing(:SerialNumber), Lag(:ChipID), :SerialNumber)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Sep 2021 08:28:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421233#M67007</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-09-27T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Copying Row values to other Column</title>
      <link>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421238#M67008</link>
      <description>&lt;P&gt;Here is my way of handling the issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtraw &amp;lt;&amp;lt; New Column( "ChipID",
	Character,
	Formula(
		If( :SerialNumber != "",
			hold = :SerialNumber
		);
		hold;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Sep 2021 08:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copying-Row-values-to-other-Column/m-p/421238#M67008</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-27T08:56:43Z</dc:date>
    </item>
  </channel>
</rss>

