<?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 Script repeating a whole table untill today in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782728#M60937</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Qlik Experst,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a CSV file, which I would like to put in my script and then repeat the whole XLSX untill today, there is a field Datum in the XLSX this is the startdate. I would like to see in this field the whole table repeated over and over from the startdate till the enddate.&lt;/P&gt;&lt;P&gt;LET vVandaag =Date(Today());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Temp_Bevolkingsopbouw:&lt;BR /&gt;LOAD&lt;BR /&gt;1 AS Sleutel,&lt;BR /&gt;IterNo() as Day,&lt;/P&gt;&lt;P&gt;Date( StartDate + IterNo() - 1 ) as Datum&lt;/P&gt;&lt;P&gt;While StartDate + IterNo() - 1 &amp;lt;= EndDate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[StartDate, EndDate&lt;/P&gt;&lt;P&gt;01-01-2020, $(vVandaag)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i load above script i have the dates, but how do i combine that with the XLSX ?&lt;/P&gt;&lt;P&gt;Any help would be great!&lt;/P&gt;&lt;P&gt;Greetings,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:29:17 GMT</pubDate>
    <dc:creator>gorterzelf</dc:creator>
    <dc:date>2024-11-16T17:29:17Z</dc:date>
    <item>
      <title>Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782728#M60937</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Qlik Experst,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a CSV file, which I would like to put in my script and then repeat the whole XLSX untill today, there is a field Datum in the XLSX this is the startdate. I would like to see in this field the whole table repeated over and over from the startdate till the enddate.&lt;/P&gt;&lt;P&gt;LET vVandaag =Date(Today());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Temp_Bevolkingsopbouw:&lt;BR /&gt;LOAD&lt;BR /&gt;1 AS Sleutel,&lt;BR /&gt;IterNo() as Day,&lt;/P&gt;&lt;P&gt;Date( StartDate + IterNo() - 1 ) as Datum&lt;/P&gt;&lt;P&gt;While StartDate + IterNo() - 1 &amp;lt;= EndDate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[StartDate, EndDate&lt;/P&gt;&lt;P&gt;01-01-2020, $(vVandaag)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i load above script i have the dates, but how do i combine that with the XLSX ?&lt;/P&gt;&lt;P&gt;Any help would be great!&lt;/P&gt;&lt;P&gt;Greetings,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782728#M60937</guid>
      <dc:creator>gorterzelf</dc:creator>
      <dc:date>2024-11-16T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782777#M60942</link>
      <description>&lt;P&gt;We're probably going to need some dummy data to work with, and what your desired solution looks like.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782777#M60942</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2021-02-15T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782779#M60943</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/66458"&gt;@Justin&lt;/a&gt;&amp;nbsp;the input data is in the XLSX and an example of the outcome data of the first 3 dates (in reality till today) is in the XLSX of this message. Hope that is clear?&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782779#M60943</guid>
      <dc:creator>gorterzelf</dc:creator>
      <dc:date>2021-02-15T14:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782808#M60945</link>
      <description>&lt;P&gt;It looks like you need a Cross Join does the code below exemplify what you are looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Let vStartDate = Num(Date(Today() - 3))
;

Let vVandaag = Num(Date(Today()))
;

Temp_Bevolkingsopbouw:
Load
  1 AS Sleutel,
  IterNo() as Day,
  RowNo() as RowNumber,
  IterNo() as IterNumber,
  Date($(vStartDate) + IterNo() - 1) as Date
AutoGenerate 1
While $(vStartDate) + IterNo() - 1 &amp;lt;= $(vVandaag)
;

DataTable:
LOAD * Inline
[
	ID, Provincie, BevolkingOp1Januari_1
	15952925, Friesland, 3042
	15952991, Overijssel, 5747
    36589178, Noord-Holland, 20791
]
;

CrossJoinedTable:
JOIN(Temp_Bevolkingsopbouw)
LOAD * RESIDENT DataTable
;

DROP TABLE DataTable
;

EXIT Script
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Depending on your data and setup, this can cause your QlikSense server to take a long walk and never come back computational-wise.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 16:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782808#M60945</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2021-02-15T16:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782845#M60953</link>
      <description>&lt;P&gt;Perfect&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42707"&gt;@JustinDallas&lt;/a&gt;&amp;nbsp;you are my hero of the day i got it working and it works fast!&lt;/P&gt;&lt;P&gt;One question how do's the crossjoinedtable work? Is it because there are no fields the same it just combines those to tables in every way posible? Just trying to understand it a bit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 19:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782845#M60953</guid>
      <dc:creator>gorterzelf</dc:creator>
      <dc:date>2021-02-15T19:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782859#M60955</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; If no field is common between both tables, the system will &lt;STRONG&gt;automatically&lt;/STRONG&gt; do a Cross Join.&amp;nbsp; Your LEFT and RIGHT joins depend on at least one field being common to work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782859#M60955</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2021-02-15T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782860#M60956</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to use master calendar concept in the script which will link your xcel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 21:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782860#M60956</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2021-02-15T21:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782861#M60957</link>
      <description>&lt;P&gt;Perfect! Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 21:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782861#M60957</guid>
      <dc:creator>gorterzelf</dc:creator>
      <dc:date>2021-02-15T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script repeating a whole table untill today</title>
      <link>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782864#M60958</link>
      <description>&lt;P&gt;Thanks, i got it working for now i used master calendars before, the solution from Justin works fast, so i will use this for now. Thanks again for thinking a long with me, much appreciated.&lt;/P&gt;&lt;P&gt;Greetings Martijn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 21:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-repeating-a-whole-table-untill-today/m-p/1782864#M60958</guid>
      <dc:creator>gorterzelf</dc:creator>
      <dc:date>2021-02-15T21:06:57Z</dc:date>
    </item>
  </channel>
</rss>

