<?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 Loop through resident table to create dates in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733289#M5316</link>
    <description>&lt;P&gt;Hi - I have the following resident table :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductInfoTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With the following Fields:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductValue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example data:&lt;/P&gt;&lt;P&gt;Product ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Value&lt;/P&gt;&lt;P&gt;--------------&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------------------&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1002&lt;/P&gt;&lt;P&gt;DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2025&lt;/P&gt;&lt;P&gt;GHI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have a loop that will create a new table with one year of dates starting from the system date (today)&amp;nbsp; for each of the product ids.&lt;/P&gt;&lt;P&gt;So for example (new table)&lt;/P&gt;&lt;P&gt;Product ID&lt;/P&gt;&lt;P&gt;Product Value&lt;/P&gt;&lt;P&gt;Product Calendar Date&lt;/P&gt;&lt;P&gt;ProductInfoCalendarTable&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp; 1002&amp;nbsp; 8/5/2020&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp; 1002 8/6/2020&lt;/P&gt;&lt;P&gt;ABC 1002 8/7/2020&lt;/P&gt;&lt;P&gt;DEF 2025 8/5/2020&lt;/P&gt;&lt;P&gt;DEF 2025 8/6/2020&lt;/P&gt;&lt;P&gt;DEF 2025 8/7/2020&lt;/P&gt;&lt;P&gt;GHI&amp;nbsp; 3020 8/5/2020&lt;/P&gt;&lt;P&gt;GHI 3020 8/6/2020&lt;/P&gt;&lt;P&gt;GHI 3020 8/7/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on and so on....&lt;/P&gt;&lt;P&gt;any thoughts on how to do this ?&lt;/P&gt;&lt;P&gt;can weekend dates be excluded ?&lt;/P&gt;&lt;P&gt;Thanks - Jerry&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 13:19:46 GMT</pubDate>
    <dc:creator>jerryr125</dc:creator>
    <dc:date>2021-12-23T13:19:46Z</dc:date>
    <item>
      <title>Loop through resident table to create dates</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733289#M5316</link>
      <description>&lt;P&gt;Hi - I have the following resident table :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductInfoTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With the following Fields:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductValue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example data:&lt;/P&gt;&lt;P&gt;Product ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Value&lt;/P&gt;&lt;P&gt;--------------&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------------------&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1002&lt;/P&gt;&lt;P&gt;DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2025&lt;/P&gt;&lt;P&gt;GHI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have a loop that will create a new table with one year of dates starting from the system date (today)&amp;nbsp; for each of the product ids.&lt;/P&gt;&lt;P&gt;So for example (new table)&lt;/P&gt;&lt;P&gt;Product ID&lt;/P&gt;&lt;P&gt;Product Value&lt;/P&gt;&lt;P&gt;Product Calendar Date&lt;/P&gt;&lt;P&gt;ProductInfoCalendarTable&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp; 1002&amp;nbsp; 8/5/2020&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp; 1002 8/6/2020&lt;/P&gt;&lt;P&gt;ABC 1002 8/7/2020&lt;/P&gt;&lt;P&gt;DEF 2025 8/5/2020&lt;/P&gt;&lt;P&gt;DEF 2025 8/6/2020&lt;/P&gt;&lt;P&gt;DEF 2025 8/7/2020&lt;/P&gt;&lt;P&gt;GHI&amp;nbsp; 3020 8/5/2020&lt;/P&gt;&lt;P&gt;GHI 3020 8/6/2020&lt;/P&gt;&lt;P&gt;GHI 3020 8/7/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on and so on....&lt;/P&gt;&lt;P&gt;any thoughts on how to do this ?&lt;/P&gt;&lt;P&gt;can weekend dates be excluded ?&lt;/P&gt;&lt;P&gt;Thanks - Jerry&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733289#M5316</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2021-12-23T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through resident table to create dates</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733331#M5317</link>
      <description>&lt;P&gt;something like this should work&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ProductInfoCalendarTable:
load ProductID,
     ProductValue,
     date(today()+iterno()-1) as ProductCalendarDate
residet ProductInfoTable
while date(today()+iterno()-1)&amp;lt;=date(addmonths(today(),12));&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 08:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733331#M5317</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-08-05T08:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through resident table to create dates</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733580#M5320</link>
      <description>&lt;P&gt;this worked perfect - thank you !&lt;/P&gt;&lt;P&gt;How can I remove the weekend days ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 21:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733580#M5320</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-08-05T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through resident table to create dates</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733634#M5323</link>
      <description>&lt;P&gt;hi add this load statement to the script&amp;nbsp;&lt;/P&gt;&lt;P&gt;after the initial build of the table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ProductInfoCalendarTable2:
NoConcatenate Load *
resident ProductInfoCalendarTable
where weekday(ProductCalendarDate)&amp;lt;5;

drop table ProductInfoCalendarTable;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 05:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1733634#M5323</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-08-06T05:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through resident table to create dates</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1734021#M5328</link>
      <description>&lt;P&gt;Thank you very much - appreciate it !&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 08:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Loop-through-resident-table-to-create-dates/m-p/1734021#M5328</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-08-07T08:34:08Z</dc:date>
    </item>
  </channel>
</rss>

