<?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: Calculation between fields in different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717026#M1076025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you just need the Min(Place_Date) from tblGAGroupPlac. then you can use like below.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from tblGAGroupPlac;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load Min(Place_Date) as mindt resident tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMinDate = peek('mindt',0,'tmp');&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load *, (Mort_dt - '$(vMinDate)')/7 as MortWeek from tblGAGroupMort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 13:15:25 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2014-07-21T13:15:25Z</dc:date>
    <item>
      <title>Calculation between fields in different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717025#M1076024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wan to do a calculation in the load with two fields that were brought in through different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mort_dt - Min(Place_Date)/7 as MortWeek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mort_dt was brought in by a table named tblGAGroupMort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place_Date was brought in by a table named tblGAGroupPlac &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you can offer will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717025#M1076024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between fields in different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717026#M1076025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you just need the Min(Place_Date) from tblGAGroupPlac. then you can use like below.&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * from tblGAGroupPlac;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load Min(Place_Date) as mindt resident tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMinDate = peek('mindt',0,'tmp');&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab2:&lt;/P&gt;&lt;P&gt;load *, (Mort_dt - '$(vMinDate)')/7 as MortWeek from tblGAGroupMort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717026#M1076025</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-07-21T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between fields in different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717027#M1076026</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;Join the two tables and then use the resident load and apply the condition on the two columns&amp;nbsp; in the resident load table.&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load a,b,c&lt;/P&gt;&lt;P&gt;from tab1;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;load c,d,e from tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now &lt;/P&gt;&lt;P&gt;load if(a&amp;gt;d,'above','below') as compare,a,b,c,d resident tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-between-fields-in-different-tables/m-p/717027#M1076026</guid>
      <dc:creator>veeranj</dc:creator>
      <dc:date>2014-07-21T13:26:36Z</dc:date>
    </item>
  </channel>
</rss>

