<?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: create a flag using loop and peek in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330394#M613473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2017 18:50:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-18T18:50:45Z</dc:date>
    <item>
      <title>create a flag using loop and peek</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330390#M613469</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;I'm trying to create a new flag by looking at the previous record it has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someon please help?&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;Please see the attachemnt&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" style="width: 177px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" width="40"&gt;Time&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="48"&gt;Flag&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="89"&gt;Req. output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;null&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;y&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;null&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;null&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;null&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;N&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;null&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330390#M613469</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2017-07-18T18:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: create a flag using loop and peek</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330391#M613470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;A _jive_internal="true" data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=https://community.qlik.com/people/stalwar1?et%3Dwatches.email.thread&amp;amp;source=gmail&amp;amp;ust=1500488427928000&amp;amp;usg=AFQjCNFjG8a2Fn4bFMIDLd9_NNxqhsrcQA" href="https://community.qlik.com/people/stalwar1?et=watches.email.thread" style="color: #1155cc; font-family: Helvetica, Arial, sans-serif; font-size: 12px;" target="_blank"&gt;Sunny Talwar&lt;/A&gt;&lt;SPAN style="color: #999999; font-family: Helvetica, Arial, sans-serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: Helvetica, Arial, sans-serif; font-size: 12px;"&gt;Any inputs brother?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330391#M613470</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2017-07-18T18:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: create a flag using loop and peek</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330392#M613471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table_Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time, Flag, Req. output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, null, null&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, y, y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, null, y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4, null, y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5, null, y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6, N, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7, null, N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table_Final:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Previous(Flag))) &amp;gt; 0 and Flag = 'null', Peek('Req Flag'), Flag) as [Req Flag]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table_Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Time;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table_Temp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330392#M613471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-18T18:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: create a flag using loop and peek</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330393#M613472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Brother!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when we say, Flag='Null', then use peek, it keep sskipping till the filed is not 'null' and it finds any other value ??&lt;/P&gt;&lt;P&gt;Please correct if i'm wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330393#M613472</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2017-07-18T18:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: create a flag using loop and peek</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330394#M613473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-flag-using-loop-and-peek/m-p/1330394#M613473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-18T18:50:45Z</dc:date>
    </item>
  </channel>
</rss>

