<?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 Excluding rows based on values in other rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358252#M705476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure if this will help but have you tried the Peek function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It allows you to see the previous rows data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peek([Fieldname]) will give you the value of Fieldname from the previous record read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, in Qlikview click on help-&amp;gt;contents-&amp;gt;index tab-&amp;gt;type in "peek".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 17:57:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-19T17:57:17Z</dc:date>
    <item>
      <title>Excluding rows based on values in other rows</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358251#M705475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example of my QlikView query I need help with, followed by an example of the resultant dataset.&lt;/P&gt;&lt;P&gt;Query:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;LOAD DISTINCT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISSUEID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTION&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;D&gt; (qvd)&lt;/D&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino;"&gt;WHERE (DATE &amp;gt; Date(AddYears(Today(),-2)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset:&lt;/P&gt;&lt;P&gt;﻿﻿&lt;IMG alt="dataset.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/12229_dataset.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Now, I need to exclude not only the rows where the ACTION = 'Withdrawn', but I also need to exclude all rows that belong to the same ISSUEID and have the same TYPE (in this case, 'Short Term Rating') as the 'Withdrawn' row - so, in the above example, I need to retain the rows where the TYPE='Long Term Rating', but I want to get rid of the rows with a TYPE of 'Short Term Rating', because one of them has an ACTION of 'Withdrawn'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to find a way to exclude rows which share the same values (ISSUEID, ACTION and TYPE) in another row - how can I do this in a LOAD statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 14:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358251#M705475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-19T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Excluding rows based on values in other rows</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358252#M705476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure if this will help but have you tried the Peek function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It allows you to see the previous rows data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peek([Fieldname]) will give you the value of Fieldname from the previous record read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, in Qlikview click on help-&amp;gt;contents-&amp;gt;index tab-&amp;gt;type in "peek".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 17:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358252#M705476</guid>
      <dc:creator />
      <dc:date>2012-03-19T17:57:17Z</dc:date>
    </item>
    <item>
      <title>Excluding rows based on values in other rows</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358253#M705477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but I don't think peek() will help, because the rows I need to exclude may not be immediately preceding each other - they may not be in consecutive rows within the dataset. What I'd like is the QlikView equivalent of this PL/SQL:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * from data WHERE issueid IN (SELECT issueid FROM data WHERE action = 'Withdrawn' AND type = 'Long Term Rating');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 08:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-rows-based-on-values-in-other-rows/m-p/358253#M705477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-20T08:11:52Z</dc:date>
    </item>
  </channel>
</rss>

