<?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 Test Condition and Drop Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150041#M28136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have an app that loads from a binary qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;binary c:\accesspoint\IBA_Source_$(vTheater).qvw;&lt;BR /&gt;//Drop unecessary fields from certain app versions&lt;BR /&gt;If $(vTheater) &amp;lt;&amp;gt; 'Global' then&lt;BR /&gt; drop field [CPL ID];&lt;BR /&gt; drop field [Contract ID];&lt;BR /&gt;endif&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The vTheater variable is changed via repeat task in Publisher but for this discussion assume it is manually set. (Possible variable values include USA, APAC, EMEA, Global, etc....)&lt;/P&gt;&lt;P&gt;The problem is that regardless of the value of vTheater the fields are being dropped. I have tested a text object to check the value of vTheater as 'Global' and yet the two fields are still being dropped.&lt;/P&gt;&lt;P&gt;Any idea thoughts on why the &lt;B&gt;if&lt;/B&gt; condition is being ignored? Is there a better way to selectively drop fields when a condition is met?&lt;/P&gt;&lt;P&gt;-Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2009 02:47:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-23T02:47:29Z</dc:date>
    <item>
      <title>Test Condition and Drop Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150041#M28136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have an app that loads from a binary qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;binary c:\accesspoint\IBA_Source_$(vTheater).qvw;&lt;BR /&gt;//Drop unecessary fields from certain app versions&lt;BR /&gt;If $(vTheater) &amp;lt;&amp;gt; 'Global' then&lt;BR /&gt; drop field [CPL ID];&lt;BR /&gt; drop field [Contract ID];&lt;BR /&gt;endif&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The vTheater variable is changed via repeat task in Publisher but for this discussion assume it is manually set. (Possible variable values include USA, APAC, EMEA, Global, etc....)&lt;/P&gt;&lt;P&gt;The problem is that regardless of the value of vTheater the fields are being dropped. I have tested a text object to check the value of vTheater as 'Global' and yet the two fields are still being dropped.&lt;/P&gt;&lt;P&gt;Any idea thoughts on why the &lt;B&gt;if&lt;/B&gt; condition is being ignored? Is there a better way to selectively drop fields when a condition is met?&lt;/P&gt;&lt;P&gt;-Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 02:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150041#M28136</guid>
      <dc:creator />
      <dc:date>2009-07-23T02:47:29Z</dc:date>
    </item>
    <item>
      <title>Test Condition and Drop Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150042#M28137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try without '$' sign.&lt;/P&gt;&lt;P&gt;If vTheater &amp;lt;&amp;gt; 'Global' then&lt;BR /&gt; drop field [CPL ID];&lt;BR /&gt; drop field [Contract ID];&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;If doesn't work, debug it and make sure the values are getting populated correct. Sometime it could be an extra space at the end or upper/lower case problem. In that case you could use Trim(vTheater) or upper(vTheater).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 03:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150042#M28137</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-23T03:36:51Z</dc:date>
    </item>
    <item>
      <title>Test Condition and Drop Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150043#M28138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should be:&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;'&lt;/STRONG&gt;$(vTheater)&lt;STRONG&gt;'&lt;/STRONG&gt; &amp;lt;&amp;gt; 'Global' then&lt;/P&gt;&lt;P&gt;Note the quotes around the variable.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 03:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150043#M28138</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-23T03:52:13Z</dc:date>
    </item>
    <item>
      <title>Test Condition and Drop Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150044#M28139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That could be it too. I always play with these 2-3 options when I have problem with variables. One of these surely works all the time.&lt;/P&gt;&lt;P&gt;My experience was only to use '$' if you are using variables with the load. Anyway, I am sure once of these trick will sole the issue for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 03:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-Condition-and-Drop-Fields/m-p/150044#M28139</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-23T03:55:24Z</dc:date>
    </item>
  </channel>
</rss>

