<?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: Use a variable declared in SQL into Qlikview charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754414#M1025942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you verify if the expected value is coming in the variable at presentation side.&lt;/P&gt;&lt;P&gt;Create a textbox, and give the expression as =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStartnDate and see what value it is showing. I feel that somehow the variable is not getting its expected value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 21:36:10 GMT</pubDate>
    <dc:creator>vishnus85</dc:creator>
    <dc:date>2015-03-05T21:36:10Z</dc:date>
    <item>
      <title>Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754406#M1025934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , I have created 2 Date variables Start date and End date and declared them in SQL script itself to limit the number of rows that are loaded.&lt;/P&gt;&lt;P&gt;So I do get correct data for tables when I simply add calendardate as dimension.Bbut when I try to use these variables individually in set analysis expressions, it doesn't seem to work.&lt;/P&gt;&lt;P&gt;e.g.: Sum ({&amp;lt;column_1={'value1'},calendardate ={"$(vStartnDate)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;I am thinking if variables declared in SQL have different usage or syntax?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 19:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754406#M1025934</guid>
      <dc:creator />
      <dc:date>2015-03-05T19:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754407#M1025935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understand the question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables declared in QlikView can be used in SQL part of the load statement, in set analysis, etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables declared in SQL (how? can you post the script?) I think can't be used in QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you only have a problem with the date format of your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStartnDate variable&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 20:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754407#M1025935</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-05T20:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754408#M1025936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies I should have been more clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;True, the variables are declared/created in Qlikview;&amp;nbsp; Settings-&amp;gt;Variable Overview(the usual mehtod), but am using them in load statement directly.&lt;/P&gt;&lt;P&gt;e.g : select t.column1,t.column2&lt;/P&gt;&lt;P&gt;from table1 t&lt;/P&gt;&lt;P&gt;where t.calendate between $(vStartdate) and $(vEndDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have two input boxes in the sheet where I input the dates. Loading the data this way works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to use these variables in set analysis expressions thats when it returns 0 as result.&lt;/P&gt;&lt;P&gt;Not having format troubles with input boxes, but any suggestions how can I make my formats uniform?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 20:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754408#M1025936</guid>
      <dc:creator />
      <dc:date>2015-03-05T20:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754409#M1025937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to declare/create the variable in the script itself before using them in SQL load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate = .....&lt;/P&gt;&lt;P&gt;Let vEndDate = ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754409#M1025937</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-05T21:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754410#M1025938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried: LET vStartDate = Calendardate;&lt;/P&gt;&lt;P&gt;(when above did not work I tried) LET vStartDate = ;&lt;/P&gt;&lt;P&gt;But it gives missing expression in both the scenarios. I added it once after connection string and once before the connection string but got the same error each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please be more specific as to what exactly means '........' and where should I declare these. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754410#M1025938</guid>
      <dc:creator />
      <dc:date>2015-03-05T21:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754411#M1025939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter where the variable was created - in the load script or on the front end.&amp;nbsp; Check you syntax.&amp;nbsp; In set, dates are "format-sensitive", maybe this will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;={"=date($(vStartnDate))"}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754411#M1025939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T21:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754412#M1025940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, unfortunately that did not work following is the exact expression i used based on your suggestion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;column_1={'value1'},calendardate ={"=date($(vStartnDate))"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754412#M1025940</guid>
      <dc:creator />
      <dc:date>2015-03-05T21:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754413#M1025941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whatever the reason is, it's not where the variable was created.&amp;nbsp; Can you upload your app to troubleshoot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754413#M1025941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T21:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754414#M1025942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you verify if the expected value is coming in the variable at presentation side.&lt;/P&gt;&lt;P&gt;Create a textbox, and give the expression as =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStartnDate and see what value it is showing. I feel that somehow the variable is not getting its expected value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754414#M1025942</guid>
      <dc:creator>vishnus85</dc:creator>
      <dc:date>2015-03-05T21:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754415#M1025943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;The variable is getting the date correctly since if I simply input the date in input box and load a table with calendardate as a dimension vs Sales value am getting the expected Sales data for that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable gives 0 value only when I try to use it in Set analysis expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754415#M1025943</guid>
      <dc:creator />
      <dc:date>2015-03-05T21:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754416#M1025944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excuse me if I am being foolishly specific, but I see that in your question you have mentioned the expression you use as "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({&amp;lt;column_1={'value1'},calendardate ={"$(vStart&lt;STRONG&gt;n&lt;/STRONG&gt;Date)"}&amp;gt;} Sales)"&lt;/SPAN&gt;&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;&lt;BR /&gt;&lt;/SPAN&gt;&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;and later you have mentioned that you have used it in script side as &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;"where t.calendate between $(vStartdate) and $(vEndDate);"&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;Hopefully it is not the unwanted 'n' in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStart&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;n&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date that makes all the trouble. It happened to me once. A small spelling mistake took a lot of debugging time. That is the reason I ask you this !&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754416#M1025944</guid>
      <dc:creator>vishnus85</dc:creator>
      <dc:date>2015-03-05T21:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754417#M1025946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem. Thanks....good catch!&lt;/P&gt;&lt;P&gt;That&amp;nbsp; was my typo here in the discussion but it says vStartDate everywhere in the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754417#M1025946</guid>
      <dc:creator />
      <dc:date>2015-03-05T21:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754418#M1025948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, amnot sure how i can mock the sql script to be able to upload the app here? Am pretty new to the qlikview world.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 21:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754418#M1025948</guid>
      <dc:creator />
      <dc:date>2015-03-05T21:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754419#M1025950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to anything with the script, just upload your qvw file, if it is small.&amp;nbsp; You can reduce app and scramble data before uploading.&lt;/P&gt;&lt;P&gt;To upload, click "use advance editor", it is on the right top of the "reply to..." window.&amp;nbsp; After that, see "attach" link on the right bottom. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 22:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754419#M1025950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T22:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754420#M1025952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry not able to reudce the data, if its not too much to ask, is it possible for you to create a mock app that mimicks what I am trying to do. Following is the sample sql statement which I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select t.column1,t.column2&lt;/P&gt;&lt;P&gt;from table t&lt;/P&gt;&lt;P&gt;where t.calendardate between (vStartDate) and (vEnddate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to narrow it down to simplest level let's assume I am makin a table that has Sales data for this Start Date&lt;/P&gt;&lt;P&gt;so the set analysis expression I am trying to use is : Sum ({&amp;lt;column_1={'value1'},calendardate ={"=date($(vStartDate))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh yes and an input box where i enter this date and reload.&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754420#M1025952</guid>
      <dc:creator />
      <dc:date>2015-03-06T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754421#M1025954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is too much to ask...&lt;/P&gt;&lt;P&gt;But I just tried almost exactly the same in one of my current applications.&amp;nbsp; The expression with the syntax you have in the opening question works fine:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={"$(VarDate)"}&amp;gt;} Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to notice that I have exactly the same date format for field Date and variable VarDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754421#M1025954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754422#M1025956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with you the problem lies with my date formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When I input the date in variable as '19-jan-2015', the date conversion :&amp;nbsp; ={"=date($(vStartnDate))"} does not seem to work. But if I enter my date as 1/19/2015 12:00:00 AM this conversion seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other date conversion so that the user can still input the date in '19-feb-2015' format in the variable and the date conversion in set analysis does not get broken.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 15:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754422#M1025956</guid>
      <dc:creator />
      <dc:date>2015-03-06T15:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754423#M1025957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the major reason I asked you to upload the app, otherwise we can only guess.&lt;/P&gt;&lt;P&gt;Your last statement implies that your calendar date is in fact a timestamp, i.e. with hh:mm:ss.&amp;nbsp; Comparing timestamps is not a good idea, they seldom match.&amp;nbsp; I recommend to load al your dates as dates without time, e.g.&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;date(floor(datetimefield)) as datefield&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, it save application size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 15:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754423#M1025957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754424#M1025958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the following formula: sum({&amp;lt;calendardate={'=Date(vStarDate)'&amp;gt;} Sales).&lt;/P&gt;&lt;P&gt;Now I do get values but looks like its adding up data for both start Date and End date and displaying summed up values and not for separating them for respective dates. So what am suspecting is it when we put values under ''(quotes) it considers them as text value and not variables.&lt;/P&gt;&lt;P&gt;Because I have a text box where i do&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vStartDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; (in the form of a formula) &lt;/SPAN&gt;&lt;/SPAN&gt;it displays expected date from the variable; but when I use this between quotes it does not recognize the individual date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 19:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754424#M1025958</guid>
      <dc:creator />
      <dc:date>2015-03-06T19:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable declared in SQL into Qlikview charts</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754425#M1025959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So finally i could get it to work , all I had to do was, put it all in a num() and it works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 21:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-variable-declared-in-SQL-into-Qlikview-charts/m-p/754425#M1025959</guid>
      <dc:creator />
      <dc:date>2015-03-06T21:16:07Z</dc:date>
    </item>
  </channel>
</rss>

