<?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 QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687468#M249059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlickview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 12:58:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-12T12:58:34Z</dc:date>
    <item>
      <title>Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687466#M249057</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 12:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687466#M249057</guid>
      <dc:creator />
      <dc:date>2014-09-12T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687467#M249058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ylenia - are you using Sense or QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687467#M249058</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2014-09-12T12:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687468#M249059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlickview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687468#M249059</guid>
      <dc:creator />
      <dc:date>2014-09-12T12:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687469#M249060</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;I've moved this question over to the QlikView part of the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;-Mattias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687469#M249060</guid>
      <dc:creator>Mattias_Malré</dc:creator>
      <dc:date>2014-09-12T13:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687470#M249061</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;Something like this:&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Years:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Years)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year + $(i) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Miikka&lt;/P&gt;&lt;P&gt;Climber Finland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687470#M249061</guid>
      <dc:creator>miikkaqlick</dc:creator>
      <dc:date>2014-09-12T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687471#M249062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&amp;nbsp; the fieldname function would help you. The getfieldselections is only used in the UI when a user is making selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vyear = right( fieldName( x, 'TableName'),4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687471#M249062</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-12T13:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687472#M249063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miikka,&lt;/P&gt;&lt;P&gt;the table has to be dynamic, I don't wanna insert the year with the INLINE function because the data of the next year will start with the price of 2015.&lt;/P&gt;&lt;P&gt;I just want to read it from the label an put it in a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687472#M249063</guid>
      <dc:creator />
      <dc:date>2014-09-12T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687473#M249064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why dont you try peek??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vyear = peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;starting_Year&lt;/SPAN&gt;');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687473#M249064</guid>
      <dc:creator />
      <dc:date>2014-09-12T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687474#M249065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Patrick It works perfectly as I wanted!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687474#M249065</guid>
      <dc:creator />
      <dc:date>2014-09-12T15:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Store a field into a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687475#M249066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;youre welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-a-field-into-a-variable/m-p/687475#M249066</guid>
      <dc:creator />
      <dc:date>2014-09-12T15:56:05Z</dc:date>
    </item>
  </channel>
</rss>

