<?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 Difference between each points in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750461#M93137</link>
    <description>&lt;P&gt;I would like to create a new column which shows the difference between the two values as highlighted (Column = Value). I need help to come up with a formula in that new column which shows the difference between blue point and red point for each Abs[Voltage] and for each Site and Coupon. Attaching the jmp file.&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="pankajsync_0-1714344389742.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63765iEFAD3DAFF5993668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pankajsync_0-1714344389742.png" alt="pankajsync_0-1714344389742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Apr 2024 22:49:42 GMT</pubDate>
    <dc:creator>pankajsync</dc:creator>
    <dc:date>2024-04-28T22:49:42Z</dc:date>
    <item>
      <title>Difference between each points</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750461#M93137</link>
      <description>&lt;P&gt;I would like to create a new column which shows the difference between the two values as highlighted (Column = Value). I need help to come up with a formula in that new column which shows the difference between blue point and red point for each Abs[Voltage] and for each Site and Coupon. Attaching the jmp file.&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="pankajsync_0-1714344389742.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63765iEFAD3DAFF5993668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pankajsync_0-1714344389742.png" alt="pankajsync_0-1714344389742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 22:49:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750461#M93137</guid>
      <dc:creator>pankajsync</dc:creator>
      <dc:date>2024-04-28T22:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between each points</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750472#M93138</link>
      <description>&lt;P&gt;Here is the formula that I came up with.....others may have alternate solutions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;theDif = Col Max( :Value, :Site, :"Abs[Voltage]"n ) - Col Min( :Value, :Site, :"Abs[Voltage]"n );
If( :Value &amp;lt; Col Mean( :Value, :Site, :"Abs[Voltage]"n ),
	theDif = theDif * -1
);
theDif;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Apr 2024 01:08:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750472#M93138</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-04-29T01:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between each points</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750495#M93145</link>
      <description>&lt;P&gt;For formulas there are many different kinds of Col formula combinations you can use, Jim suggested one and here is another which might work (add Abs/swap order as needed)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean(If(:EPG == "TE", :Value, .), :Coupon, :Site, :"Abs[Voltage]"n) - Col Mean(If(:EPG == "TP", :Value, .), :Coupon, :Site, :"Abs[Voltage]"n);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know you asked for a formula, but if you can split your data this is much simpler to do as you can just add new difference column as you would be comparing row by row. In this case you might want to remove duplicate values first to avoid some possible issues. Depending on your data you can do this from rows menu and select duplicates -&amp;gt; remove them or create new summary table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 05:49:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/750495#M93145</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-29T05:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between each points</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/795367#M97187</link>
      <description>&lt;P&gt;Using anything with COL MEAN, hangs/crashes jump often. My file has about 100k of rows. Is there any other solution which is more elegant?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:42:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/795367#M97187</guid>
      <dc:creator>pankajsync</dc:creator>
      <dc:date>2024-09-04T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between each points</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/795390#M97189</link>
      <description>&lt;P&gt;Split value by EPG grouping by site and Abs(voltage).&lt;/P&gt;
&lt;P&gt;There will then be 2 columns.&amp;nbsp; One for TE Value and one for TP Value.&lt;/P&gt;
&lt;P&gt;Create a new column with a formula that calculates the difference.&lt;/P&gt;
&lt;P&gt;Finally, go back to the original data table and using Tables=&amp;gt;Update, join the calculated table to the original table, matching on Site and Abs(Voltage)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference values will be replicated to both the TE and TP rows for each Abs(voltage)/Site row.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 22:05:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-each-points/m-p/795390#M97189</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-09-04T22:05:59Z</dc:date>
    </item>
  </channel>
</rss>

