<?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: Drop field under condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489890#M183072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is exactly what i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to both of you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 15:23:48 GMT</pubDate>
    <dc:creator>pepe2209</dc:creator>
    <dc:date>2013-12-16T15:23:48Z</dc:date>
    <item>
      <title>Drop field under condition</title>
      <link>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489887#M183069</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;I was wondering if it is possible to drop fields in the script if they fit certain conditions. See example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; width: 381px; height: 124px;" width="379"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;A1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;44&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case I would like to drop field A3 because all values are 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(sum(A3)=0 THEN drop field A3 ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not work.&lt;/P&gt;&lt;P&gt;Does anybody have an idea if this is possible? the goal is to limit the size of the document. &lt;/P&gt;&lt;P&gt;your help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 14:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489887#M183069</guid>
      <dc:creator>pepe2209</dc:creator>
      <dc:date>2013-12-16T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Drop field under condition</title>
      <link>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489888#M183070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;condition&amp;gt; THEN&lt;/P&gt;&lt;P&gt;&amp;lt;some script&amp;gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;lt;another script&amp;gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you don't need the ELSE part&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 14:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489888#M183070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-16T14:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Drop field under condition</title>
      <link>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489889#M183071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/3931"&gt;Michael Solomovich&lt;/A&gt; is correct in his response.&amp;nbsp; If seeing some working code will help you out more, here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;ID,A1,A2,A3&lt;/P&gt;&lt;P&gt;1,12,10,0&lt;/P&gt;&lt;P&gt;2,23,44,0&lt;/P&gt;&lt;P&gt;3,3,5,0&lt;/P&gt;&lt;P&gt;4,14,23,0&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sums:&lt;/P&gt;&lt;P&gt;load sum(A3) as sumA3&lt;/P&gt;&lt;P&gt;resident data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vSumA3 = PEEK('sumA3');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(vSumA3) = 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop field A3;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table sums;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 15:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489889#M183071</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-12-16T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drop field under condition</title>
      <link>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489890#M183072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is exactly what i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to both of you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 15:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Drop-field-under-condition/m-p/489890#M183072</guid>
      <dc:creator>pepe2209</dc:creator>
      <dc:date>2013-12-16T15:23:48Z</dc:date>
    </item>
  </channel>
</rss>

