<?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: Indirect Joins in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382087#M701984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do this with interval match. eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SeasonDefinition:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;StartDate,EndDate,Season&lt;/P&gt;&lt;P&gt;01/01/2012,03/31/2012,summer&lt;/P&gt;&lt;P&gt;04/01/2012,06/31/2012,rainy&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;as you made it;&lt;/P&gt;&lt;P&gt;IntervalMatch (Date_key) Load StartDate,EndDate Resident SeasonDefinition;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 05:00:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-30T05:00:53Z</dc:date>
    <item>
      <title>Indirect Joins in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382086#M701983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an autogenerated list of dates where I want to tag each date with a value based on a separate set of date ranges (eg. season).&amp;nbsp; I would really appreciate any suggestions on how to achieve this.&amp;nbsp; My best attempt so far is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vDate_Key_Min = Today() - 365;&lt;/P&gt;&lt;P&gt;SET vDate_Key_Max = Today();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;CALENDAR:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Date(IterNo() + Date($(vDate_Key_Min))) AS DATE_KEY,&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1 WHILE Date(IterNo() + Date($(vDate_Key_Min))) &amp;lt;= Date($(vDate_Key_Max));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SEASON:&lt;/P&gt;&lt;P&gt;LOAD PERIOD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRDT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TODT;&lt;/P&gt;&lt;P&gt;SQL SELECT PERIOD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRDT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TODT&lt;/P&gt;&lt;P&gt;FROM POSDEMO."RET_PERIODS";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;JOIN CALENDAR:&lt;/P&gt;&lt;P&gt;LOAD PERIOD&lt;/P&gt;&lt;P&gt;RESIDENT WEEKS WHERE CALENDAR.DATE_KEY &amp;gt;= FRDT AND CALENDAR.DATE_KEY &amp;lt;= TODT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the dot naming convention doesn't work in Qlikview but I thought it might clarify what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to end up with a table that has:&lt;/P&gt;&lt;P&gt;01/01/2012 | SUMMER&lt;/P&gt;&lt;P&gt;02/01/2012 | SUMMER&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;01/06/2012 | WINTER&lt;/P&gt;&lt;P&gt;02/06/2012 | WINTER&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 03:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382086#M701983</guid>
      <dc:creator />
      <dc:date>2012-08-30T03:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Joins in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382087#M701984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do this with interval match. eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SeasonDefinition:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;StartDate,EndDate,Season&lt;/P&gt;&lt;P&gt;01/01/2012,03/31/2012,summer&lt;/P&gt;&lt;P&gt;04/01/2012,06/31/2012,rainy&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;as you made it;&lt;/P&gt;&lt;P&gt;IntervalMatch (Date_key) Load StartDate,EndDate Resident SeasonDefinition;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 05:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382087#M701984</guid>
      <dc:creator />
      <dc:date>2012-08-30T05:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Joins in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382088#M701985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kiran, that sort of worked, except that it gave me some synthetic keys and left the values as separate tables.&amp;nbsp; What I was really hoping to achieve was just one new column in the Calendar table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 22:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382088#M701985</guid>
      <dc:creator />
      <dc:date>2012-08-30T22:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Joins in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382089#M701986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To avoid synthetic fields just drop the unnecessary fields in this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 03:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Joins-in-Load-Script/m-p/382089#M701986</guid>
      <dc:creator />
      <dc:date>2012-08-31T03:46:04Z</dc:date>
    </item>
  </channel>
</rss>

