<?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 Creating a formula for a table from a different JMP table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4326#M4326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a forumla for a column in a table using data from a different JMP table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large database with over 1 million patients admitted to various hospitals.&amp;nbsp; The database contains their Zip Code.&amp;nbsp; I would like to create a new column (RUCA Code).&amp;nbsp; I would like to fill that column with the corresponding RUCA code which I have in a different JMP file (2nd table below).&amp;nbsp; I would rather not have to input each Zip code and RUCA code into the formula by hand since there are around 5000 zip codes in the file.&amp;nbsp; It does not have to be a dynamic formula as the database is complete, and I would prefer it is not dynamic formula since those seem to take up more memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Zip Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;RUCA Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11232&lt;/TD&gt;&lt;TD&gt;15001&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11233&lt;/TD&gt;&lt;TD&gt;15004&lt;/TD&gt;&lt;TD&gt;2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11234&lt;/TD&gt;&lt;TD&gt;15007&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11235&lt;/TD&gt;&lt;TD&gt;15018&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11236&lt;/TD&gt;&lt;TD&gt;15334&lt;/TD&gt;&lt;TD&gt;7.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ZIPN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;RUCA2.0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15001&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15003&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15004&lt;/TD&gt;&lt;TD&gt;2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15005&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 16:08:27 GMT</pubDate>
    <dc:creator>jstewart</dc:creator>
    <dc:date>2012-01-26T16:08:27Z</dc:date>
    <item>
      <title>Creating a formula for a table from a different JMP table</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4326#M4326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a forumla for a column in a table using data from a different JMP table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large database with over 1 million patients admitted to various hospitals.&amp;nbsp; The database contains their Zip Code.&amp;nbsp; I would like to create a new column (RUCA Code).&amp;nbsp; I would like to fill that column with the corresponding RUCA code which I have in a different JMP file (2nd table below).&amp;nbsp; I would rather not have to input each Zip code and RUCA code into the formula by hand since there are around 5000 zip codes in the file.&amp;nbsp; It does not have to be a dynamic formula as the database is complete, and I would prefer it is not dynamic formula since those seem to take up more memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Zip Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;RUCA Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11232&lt;/TD&gt;&lt;TD&gt;15001&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11233&lt;/TD&gt;&lt;TD&gt;15004&lt;/TD&gt;&lt;TD&gt;2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11234&lt;/TD&gt;&lt;TD&gt;15007&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11235&lt;/TD&gt;&lt;TD&gt;15018&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11236&lt;/TD&gt;&lt;TD&gt;15334&lt;/TD&gt;&lt;TD&gt;7.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ZIPN&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;RUCA2.0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15001&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15003&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15004&lt;/TD&gt;&lt;TD&gt;2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15005&lt;/TD&gt;&lt;TD&gt;1.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 16:08:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4326#M4326</guid>
      <dc:creator>jstewart</dc:creator>
      <dc:date>2012-01-26T16:08:27Z</dc:date>
    </item>
    <item>
      <title>Creating a formula for a table from a different JMP table</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4327#M4327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you mean with "formula" here. To me it seems as task of joining the tables by matching the zip codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Update function useful for such a task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually:&lt;/P&gt;&lt;P&gt;Activate the first table and invoke Update from the Tables menu. Slect the second Table in the list and check "Match Columns". Then select Zip Code and ZIPN as matching columns and hit OK. If second table contains other columns that you don't want to be added to the 1st table you can select only the ones yo need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier; color: #a70096;"&gt;&lt;SPAN style="color: #000000;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #2600eb;"&gt;datatable&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"1st Table"&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier;"&gt;dt &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; Update&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;With&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #2600eb;"&gt;Data Table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #a70096;"&gt;"2nd Table"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Match Columns&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;Name&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #a70096;"&gt;"Zip Code"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #150097;"&gt;:&lt;/SPAN&gt;ZIPN&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 19:52:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4327#M4327</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-01-26T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Creating a formula for a table from a different JMP table</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4328#M4328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 18:44:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-formula-for-a-table-from-a-different-JMP-table/m-p/4328#M4328</guid>
      <dc:creator>jstewart</dc:creator>
      <dc:date>2012-02-03T18:44:41Z</dc:date>
    </item>
  </channel>
</rss>

