<?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 Calculating Across Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583616#M680691</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;I have 2 tables which contain dates.&amp;nbsp; In one of them I am calculating the number of days between the dates, however I want to do this across the the both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the attached example I want to count the number of days between Auth_Date and End_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried joining the tables but I don't seem to have much success as I still have to do the calculation in one of the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is an easy query, but I am still a bit stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 08:26:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-01T08:26:27Z</dc:date>
    <item>
      <title>Calculating Across Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583616#M680691</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;I have 2 tables which contain dates.&amp;nbsp; In one of them I am calculating the number of days between the dates, however I want to do this across the the both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the attached example I want to count the number of days between Auth_Date and End_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried joining the tables but I don't seem to have much success as I still have to do the calculation in one of the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is an easy query, but I am still a bit stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 08:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583616#M680691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T08:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Across Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583617#M680692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a straight Table&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;Job_Ref&lt;/P&gt;&lt;P&gt;Auth_Date&lt;/P&gt;&lt;P&gt;End_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression &lt;/P&gt;&lt;P&gt;NetWorkDays(Auth_Date,End_Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 08:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583617#M680692</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-01T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Across Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583618#M680693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but how do I do it in the load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You see the problem I have is that I want to do an interval match on the amount of time that it takes.&amp;nbsp; I can only do this if it is in one table (I think)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 08:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583618#M680693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Across Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583619#M680694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TEMP:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Job_Ref, Auth_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp; a, 01/04/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; b, 02/04/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; c, 03/04/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load * Inline &lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Job_Ref, Start_Date, End_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp; a, 01/05/2014,&amp;nbsp; 10/06/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; b, 02/05/2014, 20/06/2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; c, 03/05/2014,&amp;nbsp; 30/06/2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;Load *, NetWorkDays(Auth_Date, End_Date) as TotalDays Resident TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Create a straight Table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Dimensions&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Job_Ref&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Auth_Date&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;End_Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Expression&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;TotalDays&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 08:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583619#M680694</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-01T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Across Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583620#M680695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 09:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Across-Tables/m-p/583620#M680695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T09:02:14Z</dc:date>
    </item>
  </channel>
</rss>

