<?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: Date load constraint in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053325#M940165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the header filtering by date in the SQL part&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL select ........... from HeaderTable where &lt;EM style="font-size: 13.3333px;"&gt;HeaderTable.Date &lt;/EM&gt; &amp;gt; &lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;YourDate&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load the lines filtering by date in the SQL part (as Bill suggested, with a sql join between header and lines)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; line-height: 1.5em; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL select &lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LineTable&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;.&lt;/SPAN&gt;blah&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;from HeaderTable, LineTable&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;where &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;HeaderTable.Ref = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LineTable&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;.Ref&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;and &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;HeaderTable.Date &amp;gt; YourDate&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jan 2016 11:22:54 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-01-23T11:22:54Z</dc:date>
    <item>
      <title>Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053320#M940156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a header table and a lines table.&lt;/P&gt;&lt;P&gt;The lines table is linked to the header only on one reference number.&lt;/P&gt;&lt;P&gt;The line table has thousands of records and want to date constrain the load to a smaller period than the total content but there are no fields that would allow me to do this as they are pure transactional information with no reference numbers I can use with a greater than style.&lt;/P&gt;&lt;P&gt;The header table has a date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I load the header table first and join to the latter I only correctly give the header info to the the first line of the lines table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load the lines table first and then join the header but this means loading all the lines table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 12:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053320#M940156</guid>
      <dc:creator />
      <dc:date>2016-01-22T12:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053321#M940157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These two tables are 1-1 relation or 1-n or n-n relation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post some sample data how these tables related ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 15:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053321#M940157</guid>
      <dc:creator />
      <dc:date>2016-01-22T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053322#M940158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table is Header : Lines&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header&lt;/P&gt;&lt;P&gt;Ref&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines&lt;/P&gt;&lt;P&gt;Ref&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemCode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 20:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053322#M940158</guid>
      <dc:creator />
      <dc:date>2016-01-22T20:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053323#M940160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the reference number that relates the two not a sequential number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is, you could put a condition on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if your data source is a SQL database you could easily join the two tables in the database and apply your condition that way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 08:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053323#M940160</guid>
      <dc:creator>dominicmander</dc:creator>
      <dc:date>2016-01-23T08:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053324#M940164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it in your database extract sql with something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;select &lt;EM style="font-size: 13.3333px;"&gt;LineTable&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;blah &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;from HeaderTable, LineTable&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;HeaderTable.Ref = &lt;SPAN style="font-size: 13.3333px;"&gt;LineTable&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.Ref&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;and &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;HeaderTable.Date &amp;gt; YourDate&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 10:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053324#M940164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-23T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053325#M940165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the header filtering by date in the SQL part&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL select ........... from HeaderTable where &lt;EM style="font-size: 13.3333px;"&gt;HeaderTable.Date &lt;/EM&gt; &amp;gt; &lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;YourDate&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load the lines filtering by date in the SQL part (as Bill suggested, with a sql join between header and lines)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; line-height: 1.5em; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL select &lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LineTable&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;.&lt;/SPAN&gt;blah&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;from HeaderTable, LineTable&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;where &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;HeaderTable.Ref = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LineTable&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;.Ref&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;and &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;HeaderTable.Date &amp;gt; YourDate&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 11:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053325#M940165</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-23T11:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date load constraint</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053326#M940166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use QV script code (e.g. because you are not querying a DBMS):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Header:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ref,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM YourHeaderTableSource&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE Date &amp;gt; '2015-01-01';&lt;/STRONG&gt; // or whatever threshold you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Lines:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ref,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemCode,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM YourLinesTableSource&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE EXISTS(Ref);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 11:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-constraint/m-p/1053326#M940166</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-23T11:30:37Z</dc:date>
    </item>
  </channel>
</rss>

