<?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: Store a field into a variable in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687283#M581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ylenia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in QlikView and thank you for participating in the Education Services Forum.&amp;nbsp; For the future, please only use the category "QlikView" questions when asking specific QlikView questions.&amp;nbsp; The Tips and Trips and announcements are meant to share important information, not to store questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Sarah Miller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 18:26:42 GMT</pubDate>
    <dc:creator>Sarah_Miller</dc:creator>
    <dc:date>2014-09-15T18:26:42Z</dc:date>
    <item>
      <title>Store a field into a variable</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687281#M579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm trying to create a table with some years starting from a label field.&lt;/P&gt;&lt;P&gt;I have the label PRICE_2013 and with the instruction:&lt;/P&gt;&lt;P&gt;Right (@37,4) as starting_Year&lt;/P&gt;&lt;P&gt;I can get 2013 tha is the starting year of my study. Now I'd like to put this starting_Year into a variable&amp;nbsp; ($vyear) in order to make a loop and icrease automatically the value of the year like this:&lt;/P&gt;&lt;P&gt;//first year&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(vyear) as Year,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;////Second year&lt;/P&gt;&lt;P&gt;//LOAD&lt;/P&gt;&lt;P&gt;//($(vyear)+'1') as Year,&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;I tried to set as variable with GetFieldSelections() but It doesn't work because It doesn't recognize the filed starting_Year, maybe because It don't see 2013 as an integer but as a string i don't know!&lt;/P&gt;&lt;P&gt;Maybe somebody can help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687281#M579</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687282#M580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ylenia,&lt;/P&gt;&lt;P&gt;maybe this helps you to answer your question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// preparing raw input data:&lt;/P&gt;&lt;P&gt;InitData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Right ('PRICE_2013',4) AS StartYear&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// fill Variable&lt;/P&gt;&lt;P&gt;LET vStartYear = Peek('StartYear');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//exampl for next 3 years:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vStartYear) + RecNo() AS MyYear&lt;/P&gt;&lt;P&gt;AutoGenerate 3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687282#M580</guid>
      <dc:creator />
      <dc:date>2014-09-12T15:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687283#M581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ylenia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in QlikView and thank you for participating in the Education Services Forum.&amp;nbsp; For the future, please only use the category "QlikView" questions when asking specific QlikView questions.&amp;nbsp; The Tips and Trips and announcements are meant to share important information, not to store questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Sarah Miller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 18:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Store-a-field-into-a-variable/m-p/687283#M581</guid>
      <dc:creator>Sarah_Miller</dc:creator>
      <dc:date>2014-09-15T18:26:42Z</dc:date>
    </item>
  </channel>
</rss>

