<?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: Multiple Exists() functions, but still keep optimized load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432131#M1160985</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;You could create a field which is the concatenation of these two field, and do the exists on that. The concatenated field must exist in the qvd so it must be created when the qvd is built. You could drop the concatenated field at the end of the load if it is not required in the final model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 13:36:40 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-11-14T13:36:40Z</dc:date>
    <item>
      <title>Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432127#M1160981</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;If my script contains one Exists funtion, the Optimized load works just fine eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost_Ctr_Cde&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if I add an additional Exists function, the load is no longer optimized?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost_Ctr_Cde&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;any suggestions on how to keep the load optimized?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 12:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432127#M1160981</guid>
      <dc:creator />
      <dc:date>2012-11-14T12:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432128#M1160982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where exists(&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;Cost_Ctr_Cde&lt;/SPAN&gt;,Period) try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 12:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432128#M1160982</guid>
      <dc:creator />
      <dc:date>2012-11-14T12:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432129#M1160983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tied this, but the load is no longer optimized, so really slow...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 13:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432129#M1160983</guid>
      <dc:creator />
      <dc:date>2012-11-14T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432130#M1160984</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 think only&amp;nbsp; the usage of 'as','alias' keywords (and in your case, 'Exists') does not affect optimized load. &lt;BR /&gt;Perhap, since you are using Exists in conjunction with 'and', QlikView&amp;nbsp; isn't treating it as optimized.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You could use Exists twice on the same table (say, Table1) but store this table into a QVD. Drop the table and read the QVD instead. If you are implementing a layered structure, you can even implement this procedure at an earlier stage and read the QVD in this stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Khaled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 13:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432130#M1160984</guid>
      <dc:creator />
      <dc:date>2012-11-14T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432131#M1160985</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;You could create a field which is the concatenation of these two field, and do the exists on that. The concatenated field must exist in the qvd so it must be created when the qvd is built. You could drop the concatenated field at the end of the load if it is not required in the final model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 13:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432131#M1160985</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-11-14T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432132#M1160986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions, its a pity that one cant use multiple Exists() functions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 04:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432132#M1160986</guid>
      <dc:creator />
      <dc:date>2012-11-15T04:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432133#M1160987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;you could do an inner join after the exits in order to keep optimized load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;where exists(Cost_Ctr_Cde);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join(Table1)&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Period&lt;/P&gt;&lt;P&gt;your period(s)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth, regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 23:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432133#M1160987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-17T23:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Exists() functions, but still keep optimized load</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432134#M1160988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion. The problem is that Table1 would load &lt;SPAN style="text-decoration: underline;"&gt;all &lt;/SPAN&gt;Periods, which is not ideal as we have large amount of data spanning a number of years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there are other ways of doing it, but was determined to find a solution using multiple Exists() functions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2012 14:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Exists-functions-but-still-keep-optimized-load/m-p/432134#M1160988</guid>
      <dc:creator />
      <dc:date>2012-11-18T14:30:06Z</dc:date>
    </item>
  </channel>
</rss>

