<?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 where clause in QVD load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288108#M107164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for the Space in Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use trim function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [First Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Last Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;Where trim(State) = 'CA';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2011 14:34:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-18T14:34:58Z</dc:date>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288106#M107162</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;Any idea why this script is ignoring the Where clause?&amp;nbsp; It should only load records where STATE = 'CA', but it just loads everything.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [First Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Last Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;WHERE(State = 'CA');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288106#M107162</guid>
      <dc:creator />
      <dc:date>2011-07-18T14:26:57Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288107#M107163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it without the brackets:&amp;nbsp; WHERE State = 'CA';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288107#M107163</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2011-07-18T14:33:43Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288108#M107164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for the Space in Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use trim function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [First Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Last Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;Where trim(State) = 'CA';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288108#M107164</guid>
      <dc:creator />
      <dc:date>2011-07-18T14:34:58Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288109#M107165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried Trim and I tried removing the brackets.&amp;nbsp; No better.&amp;nbsp; The original code was actually generated with the load wizard, incidentally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288109#M107165</guid>
      <dc:creator />
      <dc:date>2011-07-18T14:47:41Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288110#M107166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your data is the value 'ca' or 'CA'?&amp;nbsp; Try where upper(State) = 'CA';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288110#M107166</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2011-07-18T14:49:47Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288111#M107167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are lots of different values but definitely some having CA.&amp;nbsp; But my problem is that all data gets loaded, not that some are being wrongly excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, I originally was trying to select on a numeric value but the Where clause didn't work for that one either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288111#M107167</guid>
      <dc:creator />
      <dc:date>2011-07-18T14:53:04Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288112#M107168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very odd.&amp;nbsp; Using the wizard to create an almost identical statement works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version / service release of QlikView are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288112#M107168</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2011-07-18T15:15:53Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288113#M107169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, agree it's weird.&amp;nbsp; Either something in my data or there's a higher level setting someplace.&amp;nbsp; But I haven't changed any defaults.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it matters, I'm running Windows 7 64 bit, and running QV 10.00.8815.6 SR1 64-bit.&amp;nbsp; Maybe I'll try downloading some patches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288113#M107169</guid>
      <dc:creator />
      <dc:date>2011-07-18T15:26:13Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288114#M107170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SR1 was, in my very short experience with it, very buggy.&amp;nbsp; I would upgrade to SR3 and see if that fixes the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 15:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288114#M107170</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2011-07-18T15:31:07Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288115#M107171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, SR3 didn't fix it.&amp;nbsp; Don't understand.&amp;nbsp; Seems so simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288115#M107171</guid>
      <dc:creator />
      <dc:date>2011-07-18T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288116#M107172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your QVD/QVW file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it doing an optimized load even if it has a WHERE statement? Are you sure you don't have an extra ";" before the WHERE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share your entire script? Are you sure you're not loading the file twice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288116#M107172</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-07-18T16:38:56Z</dc:date>
    </item>
    <item>
      <title>where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288117#M107173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried &lt;A _jive_internal="true" href="https://community.qlik.com/people/olafjoppe"&gt;olafjoppe&lt;/A&gt;'s approach of first loading the whole table and then using the Where clause in a resident load.&amp;nbsp; That worked, for whatever reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everybody.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288117#M107173</guid>
      <dc:creator />
      <dc:date>2011-07-18T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288118#M107174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Must've been a SR1 problem.&amp;nbsp; I created a new QVW after loading SR3, and copied-and-pasted the script from my previous version -- and it worked.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288118#M107174</guid>
      <dc:creator />
      <dc:date>2011-07-18T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288119#M107175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been quite a long while after you posted this question, but fact is even it's 2018 now, I still encounter the same issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I found a walk around for the issue (my version is QlikView 12), explained below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Field] from [QVD] being filtered using [WHERE] clause being won't work unless the filed is renamed, with a name different from the one you STORE into the QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have below script, and in this case, after I renamed the &lt;STRONG&gt;&lt;EM&gt;RegionShortName&lt;/EM&gt;&lt;/STRONG&gt; to &lt;STRONG&gt;&lt;EM&gt;RegionShortCode&lt;/EM&gt;&lt;/STRONG&gt;, the WHERE Clause will work. (if not renamed, the two commented out WHERE clauses both won't work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Region]:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM dbo.Region;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE [Hospital] into [qvd\Hospital].qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Region]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Region,&lt;/P&gt;&lt;P&gt;RegionShortName,&lt;/P&gt;&lt;P&gt;RegionShortName AS 'RegionShortCode'&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[qvd\Region.qvd] (qvd)&lt;/P&gt;&lt;P&gt;WHERE RegionShortName = 'S';&lt;/P&gt;&lt;P&gt;// WHERE WILDMATCH(RegionShortName,'*S*');&lt;/P&gt;&lt;P&gt;// &lt;SPAN style="font-size: 13.3333px;"&gt;WHERE&lt;/SPAN&gt; MixMatch(RegionShortName, 'S');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the same work around will work for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sherwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 06:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288119#M107175</guid>
      <dc:creator>sherwinzxw</dc:creator>
      <dc:date>2018-10-02T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: where clause in QVD load</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288120#M107176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; State&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [First Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Last Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd) WHERE Exists (State);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 15:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-in-QVD-load/m-p/288120#M107176</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2018-10-02T15:06:04Z</dc:date>
    </item>
  </channel>
</rss>

