<?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: Generate Delta table to calculate deltas between two temp measurments in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926598#M108442</link>
    <description>&lt;P&gt;Thanks Jarmo, see attached table&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 18:20:02 GMT</pubDate>
    <dc:creator>RayE</dc:creator>
    <dc:date>2026-01-27T18:20:02Z</dc:date>
    <item>
      <title>Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926338#M108420</link>
      <description>&lt;P&gt;I have a data table that combines 2 datasets for 2 temperature for multiple units. Each unit is subjected to 20+ tests at 2 temps.&lt;/P&gt;
&lt;P&gt;I need to generate a delta table for each unit, that calculate the delta between temp2 - temp1 as shown in table "Data_Table".&lt;/P&gt;
&lt;P&gt;I keep getting the same error after an incomplete delta table is generated shown next&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RayE_3-1769461059715.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92247iE8F15535706112FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RayE_3-1769461059715.png" alt="RayE_3-1769461059715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the error I get&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RayE_2-1769461006624.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92246i9366F6C0A2A1672B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RayE_2-1769461006624.png" alt="RayE_2-1769461006624.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RayE_4-1769461096642.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92248iF87A320AF602FB2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RayE_4-1769461096642.png" alt="RayE_4-1769461096642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;here is my code, if any can help I would really appreciate it&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Current Data Table();
 
 
allCols = dt &amp;lt;&amp;lt; Get Column Names(string);
tpColName = allCols[1];  // Always Column 1
dutColName = allCols[2]; // Always Column 2
testCols = {};
For(i = 3, i &amp;lt;= N Items(allCols), i++,
	Insert Into(testCols, allCols[i])
);
 
// 2. Extract Unique Values
Summarize(dt, dutList = By(Column(dt, 2)));
Summarize(dt, tpList = By(Column(dt, 1)));
 
// 3. Setup Results Table
dt_delta = New Table("DUT Delta Results");
dt_delta &amp;lt;&amp;lt; New Column("DUT", Character, Nominal);
dt_delta &amp;lt;&amp;lt; New Column("Shift", Character, Nominal);
For(i = 1, i &amp;lt;= N Items(testCols), i++,
	dt_delta &amp;lt;&amp;lt; New Column(testCols[i] || " Δ", Numeric, Continuous)
);
 
// 4. Robust Calculation Loop
For(d = 1, d &amp;lt;= N Items(dutList), d++,
	currDUT = dutList[d];
	For(t = 2, t &amp;lt;= N Items(tpList), t++,
		p1 = tpList[t - 1];
		p2 = tpList[t];
 
 
// This forces a match even if your DUT/TestPoints are numbers
		r1Mat = dt &amp;lt;&amp;lt; Get Rows Where(
			Char(Column(dt, 2)[]) == Char(currDUT) &amp;amp; Char(Column(dt, 1)[]) == Char(p1)
		);
		r2Mat = dt &amp;lt;&amp;lt; Get Rows Where(
			Char(Column(dt, 2)[]) == Char(currDUT) &amp;amp; Char(Column(dt, 1)[]) == Char(p2)
		);
 
// Ensure exactly one row found for each point to prevent subscript errors
		If(N Rows(r1Mat) &amp;gt; 0 &amp;amp; N Rows(r2Mat) &amp;gt; 0,
			row1 = r1Mat[1]; // Explicitly take first found row as integer
			row2 = r2Mat[1];
 
			newRow = dt_delta &amp;lt;&amp;lt; Add Rows(1);
			dt_delta:DUT[newRow] = currDUT;
			dt_delta:Shift[newRow] = p2 || " - " || p1;
 
			For(c = 1, c &amp;lt;= N Items(testCols), c++,
				colN = testCols[c];
				v1 = Column(dt, colN)[row1];
				v2 = Column(dt, colN)[row2];
 
				If(!Is Missing(v1) &amp;amp; !Is Missing(v2),
					Column(dt_delta, colN || " Δ")[newRow] = v2 - v1
				);
			);
		);
	);
);
 
dt_delta &amp;lt;&amp;lt; Bring Window To Front;
&lt;/CODE&gt;&lt;/PRE&gt;
Edit (jthi): added JSL formatting&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 05:20:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926338#M108420</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-27T05:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926384#M108424</link>
      <description>&lt;P&gt;Could you provide the data table?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 05:20:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926384#M108424</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-27T05:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926440#M108431</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;newRow = dt_delta &amp;lt;&amp;lt; Add Rows(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does not return the row number.&amp;nbsp; If you change it to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_delta &amp;lt;&amp;lt; Add Rows(1);
newRow = nrows(dt_delta);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it will work&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 11:25:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926440#M108431</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-27T11:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926598#M108442</link>
      <description>&lt;P&gt;Thanks Jarmo, see attached table&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:20:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926598#M108442</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-27T18:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926599#M108443</link>
      <description>&lt;P&gt;Thanks Jim, I will the new code, I was getting empty table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:21:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926599#M108443</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-27T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926601#M108444</link>
      <description>&lt;P&gt;it worked like a charm!, I will try it on a larger dataset, Thank you Jim&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RayE_0-1769538263387.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92344iA216859BE9E69388/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RayE_0-1769538263387.png" alt="RayE_0-1769538263387.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:25:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926601#M108444</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-27T18:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926603#M108445</link>
      <description>&lt;P&gt;confirmed calc in excel as well, data match.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RayE_1-1769538624444.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92345iF855BCF47E3DCE2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RayE_1-1769538624444.png" alt="RayE_1-1769538624444.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:30:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926603#M108445</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-27T18:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926782#M108461</link>
      <description>&lt;P&gt;Hi Jim, is there a script or feature in JMP that allow me to scale out all numeric columns to include limits; so when I run variability charts, the limits get included . Right now, all graphs are auto scaled based on data only. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 00:14:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926782#M108461</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-28T00:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926789#M108464</link>
      <description>&lt;P&gt;Every column in a JMP data table can have Column Properties set for them.&amp;nbsp; If you right click on the header of a column, you can then select Column Properties, which in turn will display all of the Column Properties that can be set.&amp;nbsp; The 2 items that seem to be what you will need are Spec Limits, and Axis.&amp;nbsp; Once set, they will be used/displayed on all subsequent relevant graphs.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 02:10:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/926789#M108464</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-28T02:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/927572#M108520</link>
      <description>&lt;P&gt;Hi Jim this may work for for few tests, but I have ~2k tests and it will be hard to do one at a time, is there a way to do script to apply to all tests? thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 19:28:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/927572#M108520</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-01-30T19:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/927573#M108521</link>
      <description>&lt;P&gt;You can script it. Where are your limits coming from?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 19:38:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/927573#M108521</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-30T19:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Delta table to calculate deltas between two temp measurments</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/929986#M108697</link>
      <description>&lt;P&gt;Thanks for the reply, I was able to resolve it. btw my limits are normally imported for each column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 00:31:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-Delta-table-to-calculate-deltas-between-two-temp/m-p/929986#M108697</guid>
      <dc:creator>RayE</dc:creator>
      <dc:date>2026-02-10T00:31:41Z</dc:date>
    </item>
  </channel>
</rss>

