<?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 Equivalent SqlValue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Equivalent-SqlValue/m-p/320029#M586551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the function SqlValue in a chart expression to calculate a specific field when I select a range of dates, but when the range increase, the time for the reload increase too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exemple : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2011 to 31/01/2011 -&amp;gt; 5 minutes for the reload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2011 to 30/06/2011 -&amp;gt; 15 minutes for the reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can load in qlikview script the table used in the SqlValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would know if there is an equivalent of the SqlValue function on a resident Table to reduce the time of the reload?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SqlValue function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SqlValue(vDataSource,'select coalesce(sum(tr_qty_req),0) as TrnQty from ETL_DATA.dbo.tr_hist &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;/P&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;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;where tr_nbr = '&amp;amp;chr(39)&amp;amp;Nbr&amp;amp;chr(39)&amp;amp;' and tr_line = '&amp;amp;Line&amp;amp;' &lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;and tr_effdate between '&amp;amp;chr(39)&amp;amp;subfield(getfieldselections(DATE_REF,';',999),';',1)&amp;amp;chr(39)&amp;amp;' and '&amp;amp;chr(39)&amp;amp;subfield(getfieldselections(DATE_REF,';',999),';',-1)&amp;amp;chr(39)&amp;amp;'','OLEDB') &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Loic&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;/A&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 06:22:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-01T06:22:22Z</dc:date>
    <item>
      <title>Equivalent SqlValue</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-SqlValue/m-p/320029#M586551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the function SqlValue in a chart expression to calculate a specific field when I select a range of dates, but when the range increase, the time for the reload increase too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exemple : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2011 to 31/01/2011 -&amp;gt; 5 minutes for the reload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2011 to 30/06/2011 -&amp;gt; 15 minutes for the reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can load in qlikview script the table used in the SqlValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would know if there is an equivalent of the SqlValue function on a resident Table to reduce the time of the reload?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SqlValue function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SqlValue(vDataSource,'select coalesce(sum(tr_qty_req),0) as TrnQty from ETL_DATA.dbo.tr_hist &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;/P&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;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;where tr_nbr = '&amp;amp;chr(39)&amp;amp;Nbr&amp;amp;chr(39)&amp;amp;' and tr_line = '&amp;amp;Line&amp;amp;' &lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;and tr_effdate between '&amp;amp;chr(39)&amp;amp;subfield(getfieldselections(DATE_REF,';',999),';',1)&amp;amp;chr(39)&amp;amp;' and '&amp;amp;chr(39)&amp;amp;subfield(getfieldselections(DATE_REF,';',999),';',-1)&amp;amp;chr(39)&amp;amp;'','OLEDB') &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Loic&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;/A&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 06:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-SqlValue/m-p/320029#M586551</guid>
      <dc:creator />
      <dc:date>2011-08-01T06:22:22Z</dc:date>
    </item>
  </channel>
</rss>

