<?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: Simple question? Optionally apply a filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252795#M396302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah - no, I just realized I could not do it that way even if it worked (up to now it doesn't, but that's only logical in this instance) - I have filtered the base_table from which I do this LOAD (as a RESIDENT LOAD) on a certain field, which rules out its use in this specific situation. Complicated to explain, but the effect is easy - the specific ID I'm searching for in this specific situation is no longer in that version of the base_table, even if I were to use a NULL-filter - so I have to use a different base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 11:31:13 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2016-11-30T11:31:13Z</dc:date>
    <item>
      <title>Simple question? Optionally apply a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252792#M396299</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 a LOAD in the script I'm currently working on with two filters - but in one specific situation I have just implemented the code for, this LOAD is also needed - but with only one of the two filters, the second one would lead to 0 records being found ...&lt;/P&gt;&lt;P&gt;I have a variable that is 1 when this specific situation is there, so I could built two LOADs in a big IF_THEN clause - but is there a slimmer way, to write the LOAD only once and optionally apply that filter?&lt;/P&gt;&lt;P&gt;Can I define that filter as a variable, for example, and just make it "1=1" if the filtering function is not needed?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 08:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252792#M396299</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2016-11-30T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question? Optionally apply a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252793#M396300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler, maybe you can use the variable to fill another variable with the filter, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vFilter = If($(vApplyFilter)=0, null(), 'where conditions');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use it in the query:&lt;/P&gt;&lt;P&gt;LOAD fields&lt;/P&gt;&lt;P&gt;Resident/from/select&lt;/P&gt;&lt;P&gt;$(vFilter);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 08:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252793#M396300</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-30T08:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question? Optionally apply a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252794#M396301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252794#M396301</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2016-11-30T09:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question? Optionally apply a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252795#M396302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah - no, I just realized I could not do it that way even if it worked (up to now it doesn't, but that's only logical in this instance) - I have filtered the base_table from which I do this LOAD (as a RESIDENT LOAD) on a certain field, which rules out its use in this specific situation. Complicated to explain, but the effect is easy - the specific ID I'm searching for in this specific situation is no longer in that version of the base_table, even if I were to use a NULL-filter - so I have to use a different base table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 11:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252795#M396302</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2016-11-30T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question? Optionally apply a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252796#M396303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's not quite clear for me what do you want to do - but you are speaking about loading one field and searching for a certain fieldvalue - for this it might be useful or an alternative to use a load-loop over fieldvalue() or searching the value per fieldindex().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 11:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252796#M396303</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-11-30T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple question? Optionally apply a filter</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252797#M396304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tricked myself in searching for a performance_improvement:&lt;/P&gt;&lt;P&gt;- At the very outset of my script, I split one big table I need several times into two parts, depending on the value in one&lt;/P&gt;&lt;P&gt;&amp;nbsp; specific field: Field is TRANCODE, values are SPRECEIVE and all others.&lt;/P&gt;&lt;P&gt;- At that other point in the script which lead to this post I had a LOAD from one of&amp;nbsp; these parts and I had two filters in place - one for that very field which I don't really need to check anymore ...&lt;/P&gt;&lt;P&gt;- I saw that in a very specific situation I could use that same LOAD, but I would have to deactivate just that filter (I would have needed that field TRANCODE unfiltered) - so I could not have done this because the LOAD was from that table that was already filtered on that field.&lt;/P&gt;&lt;P&gt;So, in the end, I did use an IF_THEN_ELSE clause because I had to use a LOAD from the other part of that table in that specific situation, in which case all the field_names are different.&lt;/P&gt;&lt;P&gt;Thus, this issue is solved, kind of ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 07:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-question-Optionally-apply-a-filter/m-p/1252797#M396304</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2016-12-02T07:01:53Z</dc:date>
    </item>
  </channel>
</rss>

