<?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 noob Q: how can I perform a calculation w/ values from different rows? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/noob-Q-how-can-I-perform-a-calculation-w-values-from-different/m-p/73053#M21188</link>
    <description>I am just beginning to use JMP scripting so please forgive if this seems very elementary . . . &lt;BR /&gt;
&lt;BR /&gt;
I have a data table full of values for Assay and Total Impurity of a drug substance on stability.&lt;BR /&gt;
&lt;BR /&gt;
data looks like this:&lt;BR /&gt;
&lt;BR /&gt;
Lot# / Condition / Component / Time (Months) / Test Result&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Total Impurities / 00 / 0.45&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Assay / 00 / 98.00&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Total Impurities / 03 / 0.43&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Assay / 03 / 100.00&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Total Impurities / 00 / 0.45&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Assay / 00 / 98.00&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Total Impurities / 03 / 0.43&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Assay / 03 / 100.00&lt;BR /&gt;
&lt;BR /&gt;
I would like to add a new column for difference in assay value from T0 (00 Months) to current Time.&lt;BR /&gt;
&lt;BR /&gt;
So the Test Result of this row, minus the Test Result in the row that has the same Lot number as this row and the same values for Component and Condition, with a value of 00 for Time (Months)&lt;BR /&gt;
&lt;BR /&gt;
So for the 4th row down it would be 100 - 98, which would give a value of +2&lt;BR /&gt;
&lt;BR /&gt;
Is that possible?</description>
    <pubDate>Fri, 17 Sep 2010 19:27:54 GMT</pubDate>
    <dc:creator>tomato</dc:creator>
    <dc:date>2010-09-17T19:27:54Z</dc:date>
    <item>
      <title>noob Q: how can I perform a calculation w/ values from different rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/noob-Q-how-can-I-perform-a-calculation-w-values-from-different/m-p/73053#M21188</link>
      <description>I am just beginning to use JMP scripting so please forgive if this seems very elementary . . . &lt;BR /&gt;
&lt;BR /&gt;
I have a data table full of values for Assay and Total Impurity of a drug substance on stability.&lt;BR /&gt;
&lt;BR /&gt;
data looks like this:&lt;BR /&gt;
&lt;BR /&gt;
Lot# / Condition / Component / Time (Months) / Test Result&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Total Impurities / 00 / 0.45&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Assay / 00 / 98.00&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Total Impurities / 03 / 0.43&lt;BR /&gt;
ABC123 / 25 °C / 60 %RH / Assay / 03 / 100.00&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Total Impurities / 00 / 0.45&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Assay / 00 / 98.00&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Total Impurities / 03 / 0.43&lt;BR /&gt;
DEF456 / 25 °C / 60 %RH / Assay / 03 / 100.00&lt;BR /&gt;
&lt;BR /&gt;
I would like to add a new column for difference in assay value from T0 (00 Months) to current Time.&lt;BR /&gt;
&lt;BR /&gt;
So the Test Result of this row, minus the Test Result in the row that has the same Lot number as this row and the same values for Component and Condition, with a value of 00 for Time (Months)&lt;BR /&gt;
&lt;BR /&gt;
So for the 4th row down it would be 100 - 98, which would give a value of +2&lt;BR /&gt;
&lt;BR /&gt;
Is that possible?</description>
      <pubDate>Fri, 17 Sep 2010 19:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/noob-Q-how-can-I-perform-a-calculation-w-values-from-different/m-p/73053#M21188</guid>
      <dc:creator>tomato</dc:creator>
      <dc:date>2010-09-17T19:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: noob Q: how can I perform a calculation w/ values from different rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/noob-Q-how-can-I-perform-a-calculation-w-values-from-different/m-p/73054#M21189</link>
      <description>Hi:&lt;BR /&gt;
  There's a separate forum for JMP users:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/forum.jspa?forumID=43" target="_blank"&gt;http://support.sas.com/forums/forum.jspa?forumID=43&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  And the folks who use JMP and JSL (JMP Scripting Language) are mostly monitoring that forum. That would be the best place to post your question.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 17 Sep 2010 20:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/noob-Q-how-can-I-perform-a-calculation-w-values-from-different/m-p/73054#M21189</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-17T20:03:01Z</dc:date>
    </item>
  </channel>
</rss>

