<?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 variable with a list in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230422#M82251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure if this is what you meant...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;LET vTODAY = addmonths(monthstart(today()),-36);&lt;BR /&gt;LET vVAR = monthstart(today());&lt;BR /&gt;&lt;BR /&gt;DO WHILE vVAR &amp;lt;&amp;gt; vTODAY&lt;BR /&gt;&lt;BR /&gt;TRACE $(vTODAY);&lt;BR /&gt;TRACE $(vVAR);&lt;BR /&gt;&lt;BR /&gt;Load Date(TODAY,'YYYY-MM') as TODAY_Formatted,&lt;BR /&gt;*;&lt;BR /&gt;Load rowno(),&lt;BR /&gt;'$(vTODAY)' as TODAY,&lt;BR /&gt;'$(vVAR)' as VAR&lt;BR /&gt;AUTOGENERATE 1;&lt;BR /&gt;&lt;BR /&gt;LET vTODAY = addmonths(date(vTODAY),1);&lt;BR /&gt;&lt;BR /&gt;SLEEP 100;&lt;BR /&gt;&lt;BR /&gt;LOOP;&lt;BR /&gt;&lt;BR /&gt;[\code]&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 15:45:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-22T15:45:08Z</dc:date>
    <item>
      <title>variable with a list in load script</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230421#M82250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;in my load script i got the follwing 2 lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;set months = '2010-11', '2010-12';&lt;BR /&gt;FOR EACH m IN $(months)&lt;BR /&gt;...&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;in the next month the variable $(months) should be actualized to:&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;months = '2010-11', '2010-12', '2011-01';&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and i dont get it to work ;(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what i need: i give a start month and all following months can be calculated automatically until the actual month is reached. is this possible?&lt;/P&gt;&lt;P&gt;i think i can get it to work by selecting the calculated months from my database. but shouldn't it be possible with qlikview script syntax?&lt;/P&gt;&lt;P&gt;i tried a loop with something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;set months=months, actualMonth&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;but that doesn't work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY help appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tobi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 11:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230421#M82250</guid>
      <dc:creator />
      <dc:date>2010-12-22T11:29:12Z</dc:date>
    </item>
    <item>
      <title>variable with a list in load script</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230422#M82251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure if this is what you meant...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;LET vTODAY = addmonths(monthstart(today()),-36);&lt;BR /&gt;LET vVAR = monthstart(today());&lt;BR /&gt;&lt;BR /&gt;DO WHILE vVAR &amp;lt;&amp;gt; vTODAY&lt;BR /&gt;&lt;BR /&gt;TRACE $(vTODAY);&lt;BR /&gt;TRACE $(vVAR);&lt;BR /&gt;&lt;BR /&gt;Load Date(TODAY,'YYYY-MM') as TODAY_Formatted,&lt;BR /&gt;*;&lt;BR /&gt;Load rowno(),&lt;BR /&gt;'$(vTODAY)' as TODAY,&lt;BR /&gt;'$(vVAR)' as VAR&lt;BR /&gt;AUTOGENERATE 1;&lt;BR /&gt;&lt;BR /&gt;LET vTODAY = addmonths(date(vTODAY),1);&lt;BR /&gt;&lt;BR /&gt;SLEEP 100;&lt;BR /&gt;&lt;BR /&gt;LOOP;&lt;BR /&gt;&lt;BR /&gt;[\code]&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 15:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230422#M82251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-22T15:45:08Z</dc:date>
    </item>
    <item>
      <title>variable with a list in load script</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230423#M82252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for your answer.&lt;/P&gt;&lt;P&gt;&amp;gt; Not sure if this is what you meant&lt;/P&gt;&lt;P&gt;mhm...let me explain it in another way.&lt;/P&gt;&lt;P&gt;i have a variable&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;startMonth='2010-10'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and then i want the variable $months to be a list with all months until the actual month.. (starting with $startMonth and automatically concatenated the following months). so after doing some qlikview script magic (i dont know) it should look like&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt; months = '2010-10', '2010-11', '2010-12';&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;so i can start with &lt;BR /&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;set months=startMonth&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;but how can i concatenate the following months until the actual month is reached?&lt;BR /&gt;&lt;BR /&gt;thank you very much and best regards&lt;BR /&gt;Tobi&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 17:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-a-list-in-load-script/m-p/230423#M82252</guid>
      <dc:creator />
      <dc:date>2010-12-22T17:02:47Z</dc:date>
    </item>
  </channel>
</rss>

