<?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: Peek () and Previous() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173376#M885612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached on how to aggregate 83% rainy days for January.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 12:24:40 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2016-09-09T12:24:40Z</dc:date>
    <item>
      <title>Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173367#M885603</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;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;1. using Peek and Previous&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt; a. generate the data &amp;lt;date,rain(yes/no)&amp;gt; for each day of 2015 such&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;that there are at least 80% days that are rainy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp; 01/01/2015 yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;the line above means that it rained on Jan 01,2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt; b. based on this data, for everyday calculate the consecutive number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;of days it rained&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt; c. finally create a table with maxdate, maxrun fields that contains&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;the date when the longest consecutive spell of rain ended, and the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;number of consecutive days that it rained.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;can you please help on this?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173367#M885603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173368#M885604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain more, i didn't get your concern? Please post sample application with expected o/p which demonstrates the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 05:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173368#M885604</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T05:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173369#M885605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using auto generate we have to create the data in the script itself. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173369#M885605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T07:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173370#M885606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, We can. Check this if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as Date&amp;nbsp; &lt;/P&gt;&lt;P&gt;While MinDate+IterNo()-1 &amp;lt;= MaxDate;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD MakeDate(2014) as MinDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Today() as MaxDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173370#M885606</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T07:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173371#M885607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide a sample of few rows of data with your expected output to help you better here &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, 09 Sep 2016 07:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173371#M885607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-09T07:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173372#M885608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is unclear how Peek() and Previous() are related to your question. Please elaborate, and consider providing additional information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Describe the data you are loading. For example attach a sample text file or xls file.&lt;/LI&gt;&lt;LI&gt;Describe the expected output. For example manually populate filed values in a excel file to demonostarte you expected output.&lt;/LI&gt;&lt;LI&gt;Describe how you have tried to resolve the scenario. Attach a QVW file to make it easier to evaluate your approach and problem. &lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173372#M885608</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T07:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173373#M885609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="468"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="89"&gt;Date&lt;/TD&gt;&lt;TD width="123"&gt;RainStatus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/1/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/2/2015&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/3/2015&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/4/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/5/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/6/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/7/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/8/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/9/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/10/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD colspan="3"&gt;So I need 80 % of rainy days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/11/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;1/12/2015&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173373#M885609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T10:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173374#M885610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why can't you just do this on a front end text box object:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;RainStatus = {'Yes'}&amp;gt;}RainStatus)/&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count(RainStatus)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173374#M885610</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-09T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173375#M885611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that just for assumption for understanding the requirement i showed you date, rainstatus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with out any source can we create date and rain status fields&amp;nbsp; by using auto generate&amp;nbsp; or some other funtion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you look at the qvw i created Date field like that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173375#M885611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T12:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Peek () and Previous()</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173376#M885612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached on how to aggregate 83% rainy days for January.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous/m-p/1173376#M885612</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T12:24:40Z</dc:date>
    </item>
  </channel>
</rss>

