<?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: header date into detail table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561807#M209684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need the header date in the details table. The header table should already be associated to the details table by the History Sequence Number. So you can simply create your common calendar on the header date. If you select a date in the calendar you will automatically get all the details belonging to the header with the header selected date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 16:53:07 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-11T16:53:07Z</dc:date>
    <item>
      <title>header date into detail table</title>
      <link>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561805#M209682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date in the header file but not in the detail record.&lt;/P&gt;&lt;P&gt;I'm trying to create a Common Calendar so I need the date in the detail record so I can use it to get the dates in the Common Calendar Table using a Item Number reference.&amp;nbsp; More information in the middle of these loads(below) but left it out. &lt;/P&gt;&lt;P&gt;I need to get the Dayend Date in the Sales_Detail so that I can link to another table by WarehouseItemKey to be used in Common Calendar.&lt;/P&gt;&lt;P&gt;I know that I can reload the information that is pulled into the qvd but is there a way to just do it in the SQL?&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Lynda &lt;/P&gt;&lt;P&gt;Sales_Header:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Dayend Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right(left([Dayend Date] , 4), 2) &amp;amp; '/' &amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right([Dayend Date], 2) &amp;amp; '/20' &amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left([Dayend Date], 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DayEndDate,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //renamed to try and tie to Sales calendar&lt;/P&gt;&lt;P&gt;[Warehouse ID] as [Sales Warehouse ID]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\ProgramData\QlikTech\SourceDocuments\QVD\HSHED.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales_Detail:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; [Item Number] as HSDETITEMNUMBER,&lt;/P&gt;&lt;P&gt;[Warehouse ID] &amp;amp; [Item Number] as WarehouseItemKey, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Warehouse ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Warehouse_Names', [Warehouse ID]) as [Warehouse Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Warehouse Location]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\ProgramData\QlikTech\SourceDocuments\QVD\HSDET.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561805#M209682</guid>
      <dc:creator />
      <dc:date>2013-07-10T14:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: header date into detail table</title>
      <link>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561806#M209683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[History Sequence Number]&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry this is the join between the two tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 16:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561806#M209683</guid>
      <dc:creator />
      <dc:date>2013-07-10T16:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: header date into detail table</title>
      <link>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561807#M209684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need the header date in the details table. The header table should already be associated to the details table by the History Sequence Number. So you can simply create your common calendar on the header date. If you select a date in the calendar you will automatically get all the details belonging to the header with the header selected date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 16:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/header-date-into-detail-table/m-p/561807#M209684</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-11T16:53:07Z</dc:date>
    </item>
  </channel>
</rss>

