<?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: Add Column to Concatenated Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466942#M695283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never had to do that before, but it works perfectly. Thank you sir!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 14:18:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-16T14:18:05Z</dc:date>
    <item>
      <title>Add Column to Concatenated Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466939#M695280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 identical tables (split by years in the download) that are concatenated. They are basically Order Information with dates (order date, shipped date, invoiced date, etc). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is, after loading and concatenating the 4 tables, do a couple of extra columns that calculate the time between dates as well as create a flag if the order shipped after it was supposed to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I can put these 5 or so calculations in each load statement but that doesn't seem to be the most efficienct. I tried doing something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, &lt;/P&gt;&lt;P&gt;order date - shipped date as lag_time, &lt;/P&gt;&lt;P&gt;x - y&amp;nbsp; as z, &lt;/P&gt;&lt;P&gt;etc,&lt;/P&gt;&lt;P&gt;Resident Orders; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, that doesn't seem to work well as it creates syn1 joins and an extra table. I thought about joining the resident table by using order numbers but that doesn't seem to work correctly as some orders have multiple lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please point me in the right direction. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466939#M695280</guid>
      <dc:creator />
      <dc:date>2013-05-16T13:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add Column to Concatenated Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466940#M695281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;After creating the new table drop the old one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;NewOrders:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Load *,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;order date - shipped date as lag_time,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;x - y&amp;nbsp; as z,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;etc,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Resident Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;drop table Orders;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466940#M695281</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-16T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add Column to Concatenated Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466941#M695282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try according to this syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, rowno() as key_table1;&lt;/P&gt;&lt;P&gt;load *, rowno() as key_table2;&lt;/P&gt;&lt;P&gt;load *, rowno() as key_table3;&lt;/P&gt;&lt;P&gt;load *, rowno() as key_table4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then on the basis of this key you calculate the disired field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466941#M695282</guid>
      <dc:creator />
      <dc:date>2013-05-16T13:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add Column to Concatenated Table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466942#M695283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never had to do that before, but it works perfectly. Thank you sir!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 14:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Column-to-Concatenated-Table/m-p/466942#M695283</guid>
      <dc:creator />
      <dc:date>2013-05-16T14:18:05Z</dc:date>
    </item>
  </channel>
</rss>

