<?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 or macros? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779871#M276379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative method, where you always get &lt;EM&gt;&lt;STRONG&gt;the last&lt;/STRONG&gt;&lt;/EM&gt; record with Bench=0 could be the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=========== Load table&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * From Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;//=========== Sort table backwards, and run one more pass&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load *, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Bench=0 and Peek(Bench)=1, True(), False()) as Flag&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;tmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order By Employee, Period Desc&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Drop Table tmp;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 20:40:06 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2015-03-24T20:40:06Z</dc:date>
    <item>
      <title>Peek or macros?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779869#M276377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys please help me solve the problem,&lt;/P&gt;&lt;P&gt;I have a table:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81676_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I need to leave the row with the latest month before the value of the Bench field appears. Like I have in June-15 '1' in DataAccount and zero in Benh, in Jul-15 I dont have any data in DataAccount, but I have '1' in bench. So I need Qlikview to leave me the row with Jun-15 data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So the table should look like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" src="https://community.qlik.com/legacyfs/online/81679_1.png" style="font-size: 10pt; line-height: 1.5em;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779869#M276377</guid>
      <dc:creator />
      <dc:date>2015-03-24T12:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Peek or macros?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779870#M276378</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;Try this in your load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;,if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;previous&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Employee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Bench&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&amp;gt; 0, DataAccount) as Flag &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;RESIDENT Temp_Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Drop Table Temp_Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779870#M276378</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-03-24T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Peek or macros?</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779871#M276379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative method, where you always get &lt;EM&gt;&lt;STRONG&gt;the last&lt;/STRONG&gt;&lt;/EM&gt; record with Bench=0 could be the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=========== Load table&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * From Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;//=========== Sort table backwards, and run one more pass&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load *, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Bench=0 and Peek(Bench)=1, True(), False()) as Flag&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;tmp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order By Employee, Period Desc&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Drop Table tmp;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-or-macros/m-p/779871#M276379</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-03-24T20:40:06Z</dc:date>
    </item>
  </channel>
</rss>

