<?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 extra columns and its values based on two tables. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Generate-extra-columns-and-its-values-based-on-two-tables/m-p/516505#M74300</link>
    <description>&lt;P&gt;Hi HSS&lt;/P&gt;&lt;P&gt;I'm not sure the idea is what your want.&lt;/P&gt;&lt;P&gt;IMO, you could &lt;STRONG&gt;Inner Join&lt;/STRONG&gt; the &lt;STRONG&gt;'t1&lt;/STRONG&gt;' &amp;amp; '&lt;STRONG&gt;t2&lt;/STRONG&gt;' which indexes are 'Board' &amp;amp; 'Sensor'. Then got a '&lt;STRONG&gt;t3'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In 't3', create Col(R1) with formula(if(condition1&amp;amp;2&amp;amp;3&amp;amp;4, R1=C11-C8, else "Empty").&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 00:13:09 GMT</pubDate>
    <dc:creator>frank_wang</dc:creator>
    <dc:date>2022-07-01T00:13:09Z</dc:date>
    <item>
      <title>Generate extra columns and its values based on two tables.</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-extra-columns-and-its-values-based-on-two-tables/m-p/516103#M74273</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I need some help in doing a calculation based on two separate data sets. First data set has different values in different columns. And in 2nd table, there are three main character columns. Now based on a these three columns and based on matching other conditions, we need to perform subtraction operation in first table and results need to be store in a new column in first table.&lt;BR /&gt;Something like this -&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="HSS_0-1656586183072.png" style="width: 606px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43703i262D998E9B50276A/image-dimensions/606x429?v=v2" width="606" height="429" role="button" title="HSS_0-1656586183072.png" alt="HSS_0-1656586183072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Names Default to here(1);&lt;BR /&gt;&lt;BR /&gt;dt1 = Data Table("Dataset");&lt;BR /&gt;dt2 = Data set("Realtime");&lt;BR /&gt;&lt;BR /&gt;//Create R1 column in Table 1.&lt;BR /&gt;// In Table 1, Somehow find the matching values for board and sensor from Table 2 and perform the calculation from different columns&lt;BR /&gt;// Board == M &amp;amp; Sensor == 2 and C11 &amp;amp; C8 is not missing then R1 = C11 - C8, otherwise leave it empty&lt;BR /&gt;// Board == M &amp;amp; Sensor == A and C11 &amp;amp; C10 is not missing then R1 = C11 - C10, otherwise leave it empty&lt;BR /&gt;// and so on.&lt;BR /&gt;//Create R2 column in Table 1 and then calculate values&lt;BR /&gt;//&lt;BR /&gt;// Probably in first loop we can generate 8 columns from R1 to R8 and then calculate each value of these columns somehow.&lt;BR /&gt;&lt;BR /&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:03:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-extra-columns-and-its-values-based-on-two-tables/m-p/516103#M74273</guid>
      <dc:creator>HSS</dc:creator>
      <dc:date>2023-06-09T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate extra columns and its values based on two tables.</title>
      <link>https://community.jmp.com/t5/Discussions/Generate-extra-columns-and-its-values-based-on-two-tables/m-p/516505#M74300</link>
      <description>&lt;P&gt;Hi HSS&lt;/P&gt;&lt;P&gt;I'm not sure the idea is what your want.&lt;/P&gt;&lt;P&gt;IMO, you could &lt;STRONG&gt;Inner Join&lt;/STRONG&gt; the &lt;STRONG&gt;'t1&lt;/STRONG&gt;' &amp;amp; '&lt;STRONG&gt;t2&lt;/STRONG&gt;' which indexes are 'Board' &amp;amp; 'Sensor'. Then got a '&lt;STRONG&gt;t3'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In 't3', create Col(R1) with formula(if(condition1&amp;amp;2&amp;amp;3&amp;amp;4, R1=C11-C8, else "Empty").&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 00:13:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Generate-extra-columns-and-its-values-based-on-two-tables/m-p/516505#M74300</guid>
      <dc:creator>frank_wang</dc:creator>
      <dc:date>2022-07-01T00:13:09Z</dc:date>
    </item>
  </channel>
</rss>

