<?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: qlik sense store procedure with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148181#M633242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found Calendar_DatePicker and it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 07:43:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-14T07:43:40Z</dc:date>
    <item>
      <title>qlik sense store procedure with variable</title>
      <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148176#M633237</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 have problem with load data from store procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this works fine:&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;*&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;exec TS.dbo.P_profil_fil '20160601','20160630';&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;But when i try use variable from qlik sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vNP = date(min([date task]),'YYYYMMDD') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v KP = date(max([date task]),'YYYYMMDD')&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;load &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;*&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;exec TS.dbo.P_profil_fil '$(vNP)','$(vKP)'; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;not working and looks like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: monospace; font-size: 13px;"&gt;exec TS.dbo.P_profil_fil 'date(min([date task]),''YYYYMMDD'') ','date(max([date task]),''YYYYMMDD'') '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: monospace; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: monospace; font-size: 13px;"&gt;but i need value in argument not formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: monospace; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: monospace; font-size: 13px;"&gt;what i missed?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148176#M633237</guid>
      <dc:creator />
      <dc:date>2016-07-13T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: qlik sense store procedure with variable</title>
      <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148177#M633238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(min(FieldValue('date task',RecNo())&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'YYYYMMDD')&lt;/SPAN&gt; as Min&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(max(FieldValue('date task',RecNo())&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'YYYYMMDD')&lt;/SPAN&gt; as Max&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Autogenerate FieldValueCount('date task');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vNP = peek('Min',-1,'Temp');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vKP = peek('Max',-1,'Temp');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DROP TABLE Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MyTable:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;SQL &lt;/SPAN&gt;EXEC TS.dbo.P_profil_fil '$(vNP)','$(vKP)';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148177#M633238</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-13T11:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: qlik sense store procedure with variable</title>
      <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148178#M633239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt;&amp;nbsp; !&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vNP and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vKP are variables that fills by user. User select date task field and variables set up automatically.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Then i use Reload button to reload document with new period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In qlikview i used calendar and got value (date) directly then i did&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;let vNP = Date(vNP,'YYYYMMDD');&lt;/P&gt;&lt;P&gt;let vKP = Date(vKP,'YYYYMMDD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SQL &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;exec P_profil_fil '$(vNP)','$(vKP)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in qlick sense i couldn`t find how to pass value for &lt;SPAN style="font-size: 13.3333px;"&gt;vNP like '20160713'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 12:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148178#M633239</guid>
      <dc:creator />
      <dc:date>2016-07-13T12:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: qlik sense store procedure with variable</title>
      <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148179#M633240</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;In qlikview i used calendar and got value (date) directly then i did&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vNP = Date(vNP,'YYYYMMDD');&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vKP = Date(vKP,'YYYYMMDD');&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, these variables then contain a date value, not an expression that can't be evaluated during the script execution outside a load statement. The expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date(&lt;STRONG&gt;min([date task])&lt;/STRONG&gt;,'YYYYMMDD') can't calculate the min of date task unless it's used in a load statement. Perhaps you can use an extension like this: &lt;A href="https://github.com/marcobarbiero/Variable-Calendar" title="https://github.com/marcobarbiero/Variable-Calendar"&gt;GitHub Variable-Calendar&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 13:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148179#M633240</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-13T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: qlik sense store procedure with variable</title>
      <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148180#M633241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately this extention not added.&lt;/P&gt;&lt;P&gt;Thank you for direction in my problem i`ll try to find another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 13:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148180#M633241</guid>
      <dc:creator />
      <dc:date>2016-07-13T13:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: qlik sense store procedure with variable</title>
      <link>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148181#M633242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found Calendar_DatePicker and it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 07:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlik-sense-store-procedure-with-variable/m-p/1148181#M633242</guid>
      <dc:creator />
      <dc:date>2016-07-14T07:43:40Z</dc:date>
    </item>
  </channel>
</rss>

