<?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 Generate Rows in script to show  2 and 4 weeks from start date - which is different per person in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643578#M732665</link>
    <description>&lt;P&gt;I have rows of data as per below. I am trying to autogenerate rows in a table in the script so for each person i.e.;&lt;/P&gt;&lt;P&gt;Adam1 -&amp;nbsp; I take the start date and generate a row for each date that is 14 days (frequency) from the start date until the end date, Likewise Beth 2 would&amp;nbsp; generate a row for each date that is 28 days apart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original table looks like this&lt;/P&gt;&lt;P&gt;[Name, Date Start, Date End, Freq&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14&lt;/P&gt;&lt;P&gt;Beth 2, 01/01/2019,01/02/2019,28]&lt;/P&gt;&lt;P&gt;*****&amp;nbsp; end table something like this&lt;/P&gt;&lt;P&gt;[Name, Date Start, Date End, Freq, DueDate&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 01/01/2019&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 14/01/2019&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 21/01/2019&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 28/01/2019&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Beth 2, 01/01/2019,01/02/2019,28,01/01/2019&lt;/P&gt;&lt;P&gt;Beth 2, 01/01/2019,01/02/2019,28,28/01/2019&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:01:30 GMT</pubDate>
    <dc:creator>JoHandyside</dc:creator>
    <dc:date>2024-11-16T02:01:30Z</dc:date>
    <item>
      <title>Generate Rows in script to show  2 and 4 weeks from start date - which is different per person</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643578#M732665</link>
      <description>&lt;P&gt;I have rows of data as per below. I am trying to autogenerate rows in a table in the script so for each person i.e.;&lt;/P&gt;&lt;P&gt;Adam1 -&amp;nbsp; I take the start date and generate a row for each date that is 14 days (frequency) from the start date until the end date, Likewise Beth 2 would&amp;nbsp; generate a row for each date that is 28 days apart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original table looks like this&lt;/P&gt;&lt;P&gt;[Name, Date Start, Date End, Freq&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14&lt;/P&gt;&lt;P&gt;Beth 2, 01/01/2019,01/02/2019,28]&lt;/P&gt;&lt;P&gt;*****&amp;nbsp; end table something like this&lt;/P&gt;&lt;P&gt;[Name, Date Start, Date End, Freq, DueDate&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 01/01/2019&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 14/01/2019&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 21/01/2019&lt;/P&gt;&lt;P&gt;Adam1, 01/01/2019,01/02/2019,14, 28/01/2019&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Beth 2, 01/01/2019,01/02/2019,28,01/01/2019&lt;/P&gt;&lt;P&gt;Beth 2, 01/01/2019,01/02/2019,28,28/01/2019&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643578#M732665</guid>
      <dc:creator>JoHandyside</dc:creator>
      <dc:date>2024-11-16T02:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Rows in script to show  2 and 4 weeks from start date - which is different per person</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643622#M732666</link>
      <description>&lt;P&gt;see attached qvw&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD *,
Date([Start date] + IterNo() - 1) as DueDate
While [Start date] + IterNo() - 1 &amp;lt;= [End date]; 
Load * Inline [
Name, Start date, End date, Freq
Adam1, 01/01/2019,01/02/2019,14
Beth2, 01/01/2019,01/02/2019,28
];

NoConcatenate

Table1:
Load * Resident Table  Where match(left(DueDate,2)/Freq,1,2,3,4,5,6,7,8,9,10,12,13,14);DROP Table Table;
Concatenate
Load *, [Start date] as DueDate;
Load * Inline [
Name, Start date, End date, Freq
Adam1, 01/01/2019,01/02/2019,14
Beth2, 01/01/2019,01/02/2019,28
];&lt;/LI-CODE&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 09:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643622#M732666</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-11-06T09:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Rows in script to show  2 and 4 weeks from start date - which is different per person</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643720#M732667</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thankyou for your response - this is not working completely as expected.&lt;/P&gt;&lt;P&gt;For adam1 it is showing,14th, 28th of the month for both months.&lt;/P&gt;&lt;P&gt;It needs to show the date dynamically ie 14 days after 28th Jan = 12th February, 26th Feb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also other records may have a start date of the 2nd Jan 19 and frequency of 14 therefore the dates would show as 2/01/2019, 16,01/2019, 30/01/2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you adjust&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643720#M732667</guid>
      <dc:creator>JoHandyside</dc:creator>
      <dc:date>2019-11-06T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Rows in script to show  2 and 4 weeks from start date - which is different per person</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643755#M732668</link>
      <description>&lt;LI-SPOILER&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thankyou for your response - this is not working completely as expected.&lt;/P&gt;&lt;P&gt;For adam1 it is showing,14th, 28th of the month for both months.&lt;/P&gt;&lt;P&gt;It needs to show the date dynamically ie 14 days after 28th Jan = 12th February, 26th Feb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also other records may have a start date of the 2nd Jan 19 and frequency of 14 therefore the dates would show as 2/01/2019, 16,01/2019, 30/01/2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you adjust&lt;/P&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643755#M732668</guid>
      <dc:creator>JoHandyside</dc:creator>
      <dc:date>2019-11-06T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Rows in script to show  2 and 4 weeks from start date - which is different per person</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643768#M732669</link>
      <description>&lt;P&gt;see attached&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Rows-in-script-to-show-2-and-4-weeks-from-start-date/m-p/1643768#M732669</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-11-06T13:47:05Z</dc:date>
    </item>
  </channel>
</rss>

