<?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: Set a value for a variable and set the next value after each reload? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016510#M638106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you initialized your vYear variable once to 1993?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2016 16:11:36 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-25T16:11:36Z</dc:date>
    <item>
      <title>Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016506#M638102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a variable in the script that holds a certain value that updates every time there is a reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value should iterate over from 1993 to 1998.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example it is 1993&lt;/P&gt;&lt;P&gt;After I reload it should be 1994&lt;/P&gt;&lt;P&gt;Then the next reload it should be 1995&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Until 1998, after 1998 it should again hold the value of 1993.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the basic of what I want to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vYear = &amp;lt;value of year based on above&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(vYear) as CurrentYear,&lt;/P&gt;&lt;P&gt;&amp;lt;fields&amp;gt;&lt;/P&gt;&lt;P&gt;From file.txt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is it possible to create a variable like this please? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 15:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016506#M638102</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2016-04-25T15:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016507#M638103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vYear = If(vYear = 1998, 1993, $(vYear) + 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 15:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016507#M638103</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-25T15:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016508#M638104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a good idea, however I get 1, 2, 3 as results and not 1993, 1994 etc. Any ideas why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016508#M638104</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2016-04-25T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016509#M638105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a little confused, are you trying to loop through these values during a single reload? or are you trying to increment by 1 every time you reload?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016509#M638105</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-25T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016510#M638106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you initialized your vYear variable once to 1993?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016510#M638106</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-25T16:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016511#M638107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to loop through them. So initial value could be 1993, then after the next reload it would be 1994, then next reload it would be 1995 etc. Until 1998, after this it loops through again and start at 1993.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016511#M638107</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2016-04-25T16:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016512#M638108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;LET vYear = If(vYear &amp;lt;&amp;gt; 1998, $(vYear) + 1, &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: line-through;"&gt;&lt;STRONG&gt;1993&lt;/STRONG&gt;&lt;/SPAN&gt;);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LET vYear = If(Len(Trim(vYear)) = 0, 1993, If(vYear = 1998, 1993, $(vYear) + 1);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016512#M638108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-25T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016513#M638109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If $(vFirst)=0 then&lt;/P&gt;&lt;P&gt;LET vYear=1992;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;LET vYear = If(vYear = 1998, 1993, $(vYear) + 1);// i copied sunny's idea here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vFirst=1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1016513#M638109</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-04-25T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set a value for a variable and set the next value after each reload?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1802620#M1211836</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create a variable in the front end&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable should iterate from the&amp;nbsp; year 2010&amp;nbsp; to the current year&lt;/P&gt;&lt;P&gt;can you suggest how&amp;nbsp; to iterate year in front end variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 10:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-a-value-for-a-variable-and-set-the-next-value-after-each/m-p/1802620#M1211836</guid>
      <dc:creator>KiruthikaA</dc:creator>
      <dc:date>2021-04-26T10:40:04Z</dc:date>
    </item>
  </channel>
</rss>

