<?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: linking columns in two tables with formulas in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328604#M57791</link>
    <description>&lt;P&gt;First I did the calculation in the Long table, using Col Mean function with by variable (Study ID).&lt;/P&gt;&lt;P&gt;e.g. for the 0..3 days average:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean( If( :Day &amp;lt;= 3, :total SOFA score, . ), :StudyID )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Problem is, that Linking is not working from the short table to the Long, because in the Long table the Study ID is not unique.&lt;/P&gt;&lt;P&gt;A Workaround is to generate a new Link ID in both tables, in the Long table it May be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char( :StudyID ) || "_" || Char( :Day )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and in the short table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char(:StudyID) || "_0"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then we can refer from the short table to the Long (Always day 0, but it contains the correct aggregated Information).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now you have the Information in your short table, dynamically connected by symbolic link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 31 Oct 2020 20:11:29 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2020-10-31T20:11:29Z</dc:date>
    <item>
      <title>linking columns in two tables with formulas</title>
      <link>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328244#M57759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with 42 patients, with longitudinal sampling. Each day has 6 SOFA score components and the total SOFA score (the sum of the components) (see attached long table). Now I want to get that info into my short table (attached) which only has patients, where I have a column of the average SOFA score per patient, average of the 1st 3 days (0 through 3) and average of the 1st 7 days (0 through 7). How can I do it so that the tables are linked: whenever a component of the SOFA score changes in the original long table, the averages in the short table change in result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to do this in a static fashion using table summary and selecting rows accordingly, and copy-pasting into the short table, but I'm not able to understand how the link tables functionality works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uriel.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:21:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328244#M57759</guid>
      <dc:creator>utkcito</dc:creator>
      <dc:date>2023-06-10T23:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: linking columns in two tables with formulas</title>
      <link>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328604#M57791</link>
      <description>&lt;P&gt;First I did the calculation in the Long table, using Col Mean function with by variable (Study ID).&lt;/P&gt;&lt;P&gt;e.g. for the 0..3 days average:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean( If( :Day &amp;lt;= 3, :total SOFA score, . ), :StudyID )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Problem is, that Linking is not working from the short table to the Long, because in the Long table the Study ID is not unique.&lt;/P&gt;&lt;P&gt;A Workaround is to generate a new Link ID in both tables, in the Long table it May be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char( :StudyID ) || "_" || Char( :Day )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and in the short table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Char(:StudyID) || "_0"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then we can refer from the short table to the Long (Always day 0, but it contains the correct aggregated Information).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now you have the Information in your short table, dynamically connected by symbolic link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 20:11:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328604#M57791</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-10-31T20:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: linking columns in two tables with formulas</title>
      <link>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328725#M57798</link>
      <description>&lt;P&gt;now I got it - the problem was that linking doesn't work "one to many". The workaround is nice!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uriel.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 20:49:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/linking-columns-in-two-tables-with-formulas/m-p/328725#M57798</guid>
      <dc:creator>utkcito</dc:creator>
      <dc:date>2020-11-01T20:49:04Z</dc:date>
    </item>
  </channel>
</rss>

