<?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: Previous Function Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448942#M489218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this&lt;/P&gt;&lt;P&gt;if(len(Trim(Store))=0, Peek(Store2), Store) AS Store2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 13:39:17 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-08-23T13:39:17Z</dc:date>
    <item>
      <title>Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448935#M489211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! , I have this problem ... in the next table i would like to fill the Store field with the Previous Store value since I found a new value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="160"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;Store&lt;/TD&gt;&lt;TD width="80"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try the expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; if(isnull(Store)=0,Store,Previous(Store))&lt;/TD&gt;&lt;TD&gt;as [Store 2],&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I only works for the next register not for all, I get something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 160px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;Store2&lt;/TD&gt;&lt;TD width="80"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? , hope you can help me , Thanks in advance! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 03:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448935#M489211</guid>
      <dc:creator>edg_baltazar</dc:creator>
      <dc:date>2012-11-20T03:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448936#M489212</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;if(isnull(Store)=0 and ,Store,if(isnull(Previous(Store))=0,Previous(Store),Peek([Store 2]))) as [Store 2],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Perumal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 04:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448936#M489212</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-11-20T04:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448937#M489213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer Perumal A ! , but what im expecting is to fill all the null values in the Store field with the last value that was different to null(), in this case the result should be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="160"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;Store&lt;/TD&gt;&lt;TD width="80"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this can be dynamic maybe for store C i would have 100 null fields... that's the real problem, Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 05:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448937#M489213</guid>
      <dc:creator>edg_baltazar</dc:creator>
      <dc:date>2012-11-20T05:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448938#M489214</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;upload sample&amp;nbsp; application&amp;nbsp; with sample data . i will solve ur problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Perumal A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 05:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448938#M489214</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-11-20T05:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448939#M489215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previous() fetches from the input table, so you will not get your changed value. Instead you want to use Peek(), which fetches from the output table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(Store)=0,Store,Peek('Store'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget the single quotes around 'Store'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 06:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448939#M489215</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-11-20T06:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448940#M489216</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;The easiest way to do this is to click the "Enable Tranformation Step" when using the file load wizard and then using the "Fill" option to fill in the blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will add the following filter expression (bold text):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM source.xls (biff, .... &lt;STRONG&gt;filters(Replace(1, top, StrCnd(null))&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the load expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 06:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448940#M489216</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-11-20T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448941#M489217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is very late reply.. But i saw this post today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Store,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if(isnull(Store)=0,Store,Peek(store2, -1)) as store2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field Store;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This will work fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let me know your concerns.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/qlik-users/2286"&gt;Rob Wunderlich&lt;/A&gt; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/H2&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 12:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448941#M489217</guid>
      <dc:creator />
      <dc:date>2013-08-23T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448942#M489218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this&lt;/P&gt;&lt;P&gt;if(len(Trim(Store))=0, Peek(Store2), Store) AS Store2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 13:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Function-Help/m-p/448942#M489218</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-23T13:39:17Z</dc:date>
    </item>
  </channel>
</rss>

