<?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 Resident table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138643#M894588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two separate tables with no association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCIDENT_YEAR&lt;/P&gt;&lt;P&gt;from incidentdate.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BIRTH_YEAR&lt;/P&gt;&lt;P&gt;from birthdate.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create an expression to say INCIDENT_DATE - BIRTHDATE but what I actually want to do is to have this done in the script.&lt;/P&gt;&lt;P&gt;Can I use a resident table to do this? I am not too familiar with subtracting from two different tables in the script. I just want to have the result and use that then. Do I need to do a join or something to get the result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>bobbydave</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138643#M894588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two separate tables with no association.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCIDENT_YEAR&lt;/P&gt;&lt;P&gt;from incidentdate.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BIRTH_YEAR&lt;/P&gt;&lt;P&gt;from birthdate.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create an expression to say INCIDENT_DATE - BIRTHDATE but what I actually want to do is to have this done in the script.&lt;/P&gt;&lt;P&gt;Can I use a resident table to do this? I am not too familiar with subtracting from two different tables in the script. I just want to have the result and use that then. Do I need to do a join or something to get the result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138643#M894588</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138644#M894589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You either need to join or use some technique (such as ApplyMap, LookUp,...) to bring them within one table to perform any calculations which involve both these two fields. If they sit in two different tables, back end calculation involving both the two fields isn't going to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138644#M894589</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-05T10:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138645#M894590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there is nothing to associate the fields of data, then how would you determine what Incident Year should be subtracted with what Birth Year? or do you want all Incidentyears to be subtracted with all birth year!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138645#M894590</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-05T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138646#M894591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like suggested they need to be in the same table to be subtracted. if you are currently doing this in the front end there must be a link or key between the to tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So with either a join or applymap you would be able to get the two field in the same table and then with a resident load or preceding load perform your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138646#M894591</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-05T10:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138647#M894592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14704017205956566" jivemacro_uid="_14704017205956566"&gt;
&lt;P&gt;TableA:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2000 + RowNo() as INCIDENT_YEAR&lt;/P&gt;
&lt;P&gt;AutoGenerate 100;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TableB:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1900 + RowNo() as BIRTH_YEAR&lt;/P&gt;
&lt;P&gt;AutoGenerate 100;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IncidentVsBirth:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;Resident TableA;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Join (IncidentVsBirth)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;Resident TableB;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (IncidentVsBirth)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;&amp;nbsp; , INCIDENT_YEAR - BIRTH_YEAR as YearDiff&lt;/P&gt;
&lt;P&gt;Resident IncidentVsBirth;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can expect right answer for right question only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138647#M894592</guid>
      <dc:creator />
      <dc:date>2016-08-05T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138648#M894593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, all birthdates would be subtracted from all incident years.&lt;/P&gt;&lt;P&gt;If you can imagine 20 people born between 1920 and 2015. Each has an accident and the year that accident happens needs to be subtracted from the year the incident happened to show their age at that point in time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 09:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table/m-p/1138648#M894593</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2016-08-08T09:53:13Z</dc:date>
    </item>
  </channel>
</rss>

