<?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 Loading from QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324625#M119609</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;while loading from qvd you can use the function mid() instead of substr().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you LOAD data from qvd xls or csv etc. you need to use QV Syntax. If you load (with SQL SELECT...) from an external database with using SQL you can use the database language that you are selecting from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Björn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 16:11:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-16T16:11:48Z</dc:date>
    <item>
      <title>Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324621#M119605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am loading some fields from QVD and I want to narrow my information by adding "where"&lt;/P&gt;&lt;P&gt;So my query looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from ..\QVD\Putbom.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;C.#COENT = 40&lt;/P&gt;&lt;P&gt;AND DATE(SUBSTR(DIGITS(#COEDT), 5, 2)||'/' || SUBSTR(DIGITS(#COEDT), 7, 2)||'/'||SUBSTR(DIGITS(#COEDT), 1, 4)) &amp;gt; $(varEndOfYearDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the below error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC connection failed&lt;/P&gt;&lt;P&gt;Select * from ..\QVD\Putbom.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;C.#COENT = 40&lt;/P&gt;&lt;P&gt;AND DATE(SUBSTR(DIGITS(#COEDT), 5, 2)||'/' || SUBSTR(DIGITS(#COEDT), 7, 2)||'/'||SUBSTR(DIGITS(#COEDT), 1, 4)) &amp;gt; '06/30/2010'&lt;/P&gt;&lt;P&gt;Can anybody help me please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 15:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324621#M119605</guid>
      <dc:creator />
      <dc:date>2011-11-16T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324622#M119606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the Select to Load but I got the below error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;SUBSTR is not a valid function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVDLoad3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from ..\QVD\Putbom.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;C.#COENT = 40&lt;/P&gt;&lt;P&gt;AND DATE(SUBSTR(DIGITS(#COEDT), 5, 2)||'/' || SUBSTR(DIGITS(#COEDT), 7, 2)||'/'||SUBSTR(DIGITS(#COEDT), 1, 4)) &amp;gt; '06/30/2010'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 15:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324622#M119606</guid>
      <dc:creator />
      <dc:date>2011-11-16T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324623#M119607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because substr is not a Qlikview function. And I doubt this will work anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not tested:&lt;/P&gt;&lt;P&gt;you could try:&lt;/P&gt;&lt;P&gt;DATE(COEDT) &amp;gt; DATE#(06/30/2010, 'DD/MM/YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 15:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324623#M119607</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-11-16T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324624#M119608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the query is working in Qlikview when I select directly from a table, i am getting the error when I load from QVD and and then add the where query!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324624#M119608</guid>
      <dc:creator />
      <dc:date>2011-11-16T16:07:03Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324625#M119609</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;while loading from qvd you can use the function mid() instead of substr().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you LOAD data from qvd xls or csv etc. you need to use QV Syntax. If you load (with SQL SELECT...) from an external database with using SQL you can use the database language that you are selecting from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Björn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324625#M119609</guid>
      <dc:creator />
      <dc:date>2011-11-16T16:11:48Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324626#M119610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that and I got this error&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;DIGITS is not a valid function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVDLoad3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from ..\QVD\Putbom.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;Company = 40&lt;/P&gt;&lt;P&gt;AND DATE( MID(DIGITS(#COEDT), 5, 2)||'/' || MID(DIGITS(#COEDT), 7, 2)||'/'||MID(DIGITS(#COEDT), 1, 4)) &amp;gt; '06/30/2010'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324626#M119610</guid>
      <dc:creator />
      <dc:date>2011-11-16T16:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324627#M119611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;badrharfoush wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that and I got this error&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;DIGITS is not a valid function&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right, because just like the error says, DIGITS() is not a valid QlikView function either.&amp;nbsp; You can only use valid QlikView functions in a LOAD statement.&amp;nbsp; &lt;/P&gt;You may want to look up the documentation on the available QlikView functions and familiarize yourself with what is and isn't available.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you're creating your QVD, you should make COEDT a QlikView date, not text, not a number.&amp;nbsp; Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM ..\QVD\Putbom.qvd (QVD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE Company = 40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; AND COEDT &amp;gt; makedate(2010,6,30);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would never write it like that in a real application.&amp;nbsp; I never load *, and there are ways to drastically improve the performance of your filtering by COENT and COEDT.&amp;nbsp; But let's start with at least a runnable script and good data before we make things more complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 19:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD/m-p/324627#M119611</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-16T19:56:44Z</dc:date>
    </item>
  </channel>
</rss>

