<?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 Remove a range of rows based on condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264776#M1192088</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;I have multiple, similar Excel files. When I grab the information from them, there is a header block in each, that I need to remove on the load. The problem is that the range of rows varies, BUT I have a reference point - the last row will always have the same string in the first column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there is a conditional range remove? Or maybe there is a work-around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siarhei K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 16:01:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-07T16:01:33Z</dc:date>
    <item>
      <title>Remove a range of rows based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264776#M1192088</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;I have multiple, similar Excel files. When I grab the information from them, there is a header block in each, that I need to remove on the load. The problem is that the range of rows varies, BUT I have a reference point - the last row will always have the same string in the first column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there is a conditional range remove? Or maybe there is a work-around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siarhei K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 16:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264776#M1192088</guid>
      <dc:creator />
      <dc:date>2011-07-07T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Remove a range of rows based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264777#M1192090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to just include a where clause in your load script to eliminate your problem rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE (first_field &amp;lt;&amp;gt; 'same_string'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or first_field &amp;lt;&amp;gt; ' ') //whatever else you may need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 18:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264777#M1192090</guid>
      <dc:creator />
      <dc:date>2011-07-07T18:19:16Z</dc:date>
    </item>
    <item>
      <title>Remove a range of rows based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264778#M1192091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but as far as I understand, this will only exclude specific rows rather than a range of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 19:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264778#M1192091</guid>
      <dc:creator />
      <dc:date>2011-07-08T19:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove a range of rows based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264779#M1192092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what does this data look like?&amp;nbsp; Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Blah blah blah blah&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;blah blah blah blah&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;blah blah blah blah&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;END&amp;nbsp; blah blah blah&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Ann&amp;nbsp; 0123 blue 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Bob&amp;nbsp; 1234 red&amp;nbsp; 15&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Chad 9912 blue 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't predict what the 'blah blah blah blah' looks like, and you can't predict how many lines of it there will be.&amp;nbsp; All you know is that the LAST line you need to ignore has something recognizable in the first field, in my example 'END'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this case, one way would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MyData:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Field1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Field2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Field3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Field4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(previous(Field1)='END',1,peek(Keep)) as Keep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM your file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INNER JOIN (MyData)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD 1 as Keep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AUTOGENERATE 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP FIELD Keep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I almost never load from files, so there may be a much simpler way of ignoring header information in files that I'm simply not aware of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 23:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264779#M1192092</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-08T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove a range of rows based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264780#M1192093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to do the exact opposite.&lt;/P&gt;&lt;P&gt;I want to exclude all lines after a field contains a certain value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 11:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264780#M1192093</guid>
      <dc:creator />
      <dc:date>2013-03-19T11:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Remove a range of rows based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264781#M1192094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this? The rest would be the same as before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(Field1='END',0,if(rowno()=1,1,peek(Keep))) as Keep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 16:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-a-range-of-rows-based-on-condition/m-p/264781#M1192094</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2013-03-19T16:12:10Z</dc:date>
    </item>
  </channel>
</rss>

