<?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 How can I delete a column based on a condition? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-delete-a-column-based-on-a-condition/m-p/257839#M1192498</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;Loading an Excel file, I have a column that, depending on the contents (or rather lack of), needs to be removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can go the strange way of transposing the table (since in my case it's always the first column that's under the question) and deleting what is now the row. But I would like to know, in general, if I need to delete a column based on value(s) in it, how would I go about doing that?&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;Siarhei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2011 20:04:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-05T20:04:40Z</dc:date>
    <item>
      <title>How can I delete a column based on a condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-delete-a-column-based-on-a-condition/m-p/257839#M1192498</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;Loading an Excel file, I have a column that, depending on the contents (or rather lack of), needs to be removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can go the strange way of transposing the table (since in my case it's always the first column that's under the question) and deleting what is now the row. But I would like to know, in general, if I need to delete a column based on value(s) in it, how would I go about doing that?&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;Siarhei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 20:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-delete-a-column-based-on-a-condition/m-p/257839#M1192498</guid>
      <dc:creator />
      <dc:date>2011-07-05T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a column based on a condition?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-delete-a-column-based-on-a-condition/m-p/257840#M1192499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use DROP FIELD to actually remove a column completely after you've loaded it.&amp;nbsp; Wrap it in an IF block to conditionally drop the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just mean removing the value based on a condition:&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(condition, value) as value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only in the given condition will value be filled in.&amp;nbsp; Otherwise the value in the column will be null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 23:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-delete-a-column-based-on-a-condition/m-p/257840#M1192499</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-05T23:47:00Z</dc:date>
    </item>
  </channel>
</rss>

