<?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 Apply exists function only on applicable result set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173956#M42953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I tried to make it as simple as possible in the example...&lt;/P&gt;&lt;P&gt;We are working with massive datasets, so I had to create an inline simulation.&lt;/P&gt;&lt;P&gt;The expected results are described within the QV document.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2011 11:15:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-22T11:15:18Z</dc:date>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173954#M42951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to use the 'exits()' function to only check within the possible values. Example:&lt;/P&gt;&lt;P&gt;[CODE]&lt;/P&gt;&lt;P&gt;aTable:&lt;BR /&gt;load&lt;BR /&gt;*,&lt;BR /&gt;if(Exists(field_to_search_in,other_field_current_value),'Yes', 'No') as [Result]&lt;BR /&gt;resident&lt;BR /&gt;bTable&lt;/P&gt;&lt;P&gt;[/CODE]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the fact that the [Result] field will also hold 'Yes' values for results that are not applicable on the current selection criteria. Compare my problem with the set analysis functionality to use $ or 1 to define what should be taken into account. I only want the outcome to be 'Yes' if the fieldvalue was found in the possible value list of 'field_to_search_in'.&lt;/P&gt;&lt;P&gt;Hope my problem is clear. Thanks in advance!&lt;/P&gt;&lt;P&gt;Ps: Any other approaches to solve the problem are of course very welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 10:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173954#M42951</guid>
      <dc:creator />
      <dc:date>2011-03-22T10:27:25Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173955#M42952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maarten,&lt;/P&gt;&lt;P&gt;You are using Exists() in the script, where there are no selections done yet (there will be once the document is completely and successfully loaded), and all values are possible. You need to define some other condition for that "was found in the possible value list of 'field_to_search_in'".&lt;/P&gt;&lt;P&gt;If you post some sample data and expected results will help to find out a solution.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 10:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173955#M42952</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-22T10:48:39Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173956#M42953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I tried to make it as simple as possible in the example...&lt;/P&gt;&lt;P&gt;We are working with massive datasets, so I had to create an inline simulation.&lt;/P&gt;&lt;P&gt;The expected results are described within the QV document.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 11:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173956#M42953</guid>
      <dc:creator />
      <dc:date>2011-03-22T11:15:18Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173957#M42954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;you could split the field rslt_phonelog by using the function SubField( ). See my attached version. I've added also some records to show how it works.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 11:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173957#M42954</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-03-22T11:45:10Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173958#M42955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..I've changed the example, It was not complete.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173958#M42955</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-03-22T12:07:05Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173959#M42956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;Spot on! Exactly the outcome I was hoping for! Great job! Thanks!&lt;/P&gt;&lt;P&gt;The only thing I was wondering when taking a look at your solution, is what the impact will be when treating massive amounts of data... aspecially due to the use of Sync keys... What are your thoughts one that?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173959#M42956</guid>
      <dc:creator />
      <dc:date>2011-03-22T12:42:13Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173960#M42957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;you could remove the key fields (slt_id, rslt_property) on the ResultDetail table. I kept it only for explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ResultDetail:&lt;BR /&gt;load rslt_id &amp;amp; '_' &amp;amp; rslt_property &amp;amp; '_' &amp;amp; rslt_log_detail as rslt_log_detail_key;&lt;BR /&gt;load&lt;BR /&gt;rslt_id,&lt;BR /&gt;rslt_property,&lt;BR /&gt;SubField(rslt_phonelog, ',') as rslt_log_detail&lt;BR /&gt;resident Result;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;- Ralf&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173960#M42957</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-03-22T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173961#M42958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..and also you can drop the initial table Result.&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173961#M42958</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-03-22T12:55:44Z</dc:date>
    </item>
    <item>
      <title>Apply exists function only on applicable result set</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173962#M42959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the info!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 13:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-exists-function-only-on-applicable-result-set/m-p/173962#M42959</guid>
      <dc:creator />
      <dc:date>2011-03-22T13:47:42Z</dc:date>
    </item>
  </channel>
</rss>

