<?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 SV:Previous() function in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233151#M84691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was quite a lengthy thread &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;However, I couldn't see that you had tested the exact same syntax that I suggested.&lt;BR /&gt;I saw the following row, but you are not defining the table as a string (with single quotation marks):&lt;BR /&gt;Let Stock = Peek('Stock1',-1,t1);&lt;BR /&gt;&lt;BR /&gt;Try my suggestion in the example above and let me know if this works.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2011 14:31:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-29T14:31:09Z</dc:date>
    <item>
      <title>Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233148#M84688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t1:&lt;BR /&gt; Load Week,&lt;BR /&gt; Material,&lt;BR /&gt; [Weekly Material Stock] as Stock1,&lt;BR /&gt; [Weekly Material Demand] as Demand1&lt;BR /&gt; Resident Temp_Table&lt;BR /&gt; where WOCHE = $(vFieldValue_1)&lt;BR /&gt; ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Let Stock = Previous('Stock1');&lt;/P&gt;&lt;P&gt;Trace $(Stock);&lt;/P&gt;&lt;P&gt;I wanted to see what values Stock takes in my loop&lt;/P&gt;&lt;P&gt;I see only stock1 in the trace but not the values it is taking. Anyidea how to change my trace so that I can see the values it is taking??&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 10:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233148#M84688</guid>
      <dc:creator />
      <dc:date>2011-04-28T10:35:51Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233149#M84689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;previous() references the field and values in the input table, which means that it can't be used outside of a load statement.&lt;/P&gt;&lt;P&gt;I would suggest that you use peek() instead.&lt;BR /&gt;To get the last record read:&lt;/P&gt;&lt;P&gt;LET Stock = peek('Stock1', -1, 't1');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233149#M84689</guid>
      <dc:creator />
      <dc:date>2011-04-29T14:06:02Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233150#M84690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffan,&lt;/P&gt;&lt;P&gt;with Peek also it does not work&lt;/P&gt;&lt;P&gt;see here in this thread&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/44670.aspx&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233150#M84690</guid>
      <dc:creator />
      <dc:date>2011-04-29T14:19:36Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233151#M84691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was quite a lengthy thread &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;However, I couldn't see that you had tested the exact same syntax that I suggested.&lt;BR /&gt;I saw the following row, but you are not defining the table as a string (with single quotation marks):&lt;BR /&gt;Let Stock = Peek('Stock1',-1,t1);&lt;BR /&gt;&lt;BR /&gt;Try my suggestion in the example above and let me know if this works.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233151#M84691</guid>
      <dc:creator />
      <dc:date>2011-04-29T14:31:09Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233152#M84692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Steffan,&lt;/P&gt;&lt;P&gt;Thanks and sorry for confusing. I edited the Script in the other thread and yes as in the example which I have attached in the other thread, I used the same syntax which you wrote here. The problem is that peek and concatenate somehow seems not to work. I described extensively my problem in other thread.&lt;/P&gt;&lt;P&gt;Thanks anyway for your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233152#M84692</guid>
      <dc:creator />
      <dc:date>2011-04-29T14:50:31Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233153#M84693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sravan,&lt;/P&gt;&lt;P&gt;I may have got you wrong, but if you want a list of possible values for field "Stock", once the whole table has been loaded, you can do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AllStockValues:LOAD CONCAT(DISTINCT Stock, ',') AS ValuesForStockRESIDENT t1;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If you mean you are within a loop and you want to know the last loaded value of "Stock", just do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vLastStockValue = Peek('Stock'); // No need for additional parameters&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233153#M84693</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-29T14:54:34Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233154#M84694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I dont get you. I am attaching the Example and I explained my problem in the application. can you please help?&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/StockReporting.qvw]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 15:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233154#M84694</guid>
      <dc:creator />
      <dc:date>2011-04-29T15:44:50Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233155#M84695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Ideas profis Here:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 10:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233155#M84695</guid>
      <dc:creator />
      <dc:date>2011-05-02T10:13:21Z</dc:date>
    </item>
    <item>
      <title>SV:Previous() function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233156#M84696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As the week changed I tried to change the present .qvw and upload. somehow it does not change&lt;IMG alt="Tongue Tied" src="http://community.qlik.com/emoticons/emotion-7.gif" /&gt; Here is the new one.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.00.49.52/StockReportingLatest.qvw]&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 10:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-function-in-script/m-p/233156#M84696</guid>
      <dc:creator />
      <dc:date>2011-05-02T10:19:14Z</dc:date>
    </item>
  </channel>
</rss>

