<?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: How to pass Parameters (Like SSRS) in the query of QVW files to retrieve only required data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602975#M222825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/P1ratyush"&gt;P1ratyush&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;your ans helped me and it worked as expected but I need further advise to set default values to variable.&lt;/P&gt;&lt;P&gt;V_PRM_START_DT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;INPUT('Enter the Start Date in YYYYMMDD','Input box') AS START_DATE AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;LET PRM_START_DT=NUM(PEEK('START_DATE',0,'V_PRM_START_DT'));&lt;/P&gt;&lt;P&gt;DROP TABLE V_PRM_START_DT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_PRM_END_DT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;INPUT('Enter the End Date in YYYYMMDD','Input box') AS END_DATE AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;LET PRM_END_DT=NUM(PEEK('END_DATE',0,'V_PRM_END_DT'));&lt;/P&gt;&lt;P&gt;DROP TABLE V_PRM_END_DT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT_EMP_DATA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_KEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMP_KEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MONTHLY SALARY AMOUNT], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INCENTIVE AMOUNT]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;FACT_EMP_DATA.QVD (qvd)&lt;/P&gt;&lt;P&gt;WHERE DATE_KEY&amp;gt;=$(PRM_START_DT) AND DATE_KEY&amp;lt;=$(PRM_END_DT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE DATE_KEY &lt;EM&gt;&lt;STRONG&gt;BETWEEN&lt;/STRONG&gt;&lt;/EM&gt; $(PRM_START_DT) AND $(PRM_END_DT) is not working but WHERE DATE_KEY&amp;gt;=$(PRM_START_DT) AND DATE_KEY&amp;lt;=$(PRM_END_DT) is working. I would like to know why?&lt;/P&gt;&lt;P&gt;Is &lt;EM&gt;&lt;STRONG&gt;BETWEEN&lt;/STRONG&gt;&lt;/EM&gt; not valid command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to assign default values (Something like this CONVERT(VARCHAR(10),Getdate()-30,112) for Start Date and CONVERT(VARCHAR(10),Getdate(),112) for End Date) to my Input parameters so that if some one is not willing to enter these dates then it will reload with default values. How can I achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 05:47:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-05T05:47:26Z</dc:date>
    <item>
      <title>How to pass Parameters (Like SSRS) in the query of QVW files to retrieve only required data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602972#M222822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have DIM_EMP_TABLE (EMP_KEY,EMP_ID, EMP_NAME,JOINING_DATE) another dimension table DIM_DEP_TABLE (DEP_KEY, DEP_ID, DEP_NAME) and Fact table FACT_EMP_DETAILS (EMP_KEY, DEP_KEY, MONTHLY_SALARY, INCENTIVE, SALARY_CREADITED_DATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What I have done is created a QVW file to reload data into 3 different QVD files named as DIM_EMP_DATA.QVD , DIM_DEP_DATA.QVD and FACT_EMP_DETAILS_DATA.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now Created another QVW with below query to fetch data from QVD files and display in Listbox and Table &amp;amp; chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;DIM_EMP_DATA:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;EMP_KEY,EMP_ID, EMP_NAME,JOINING_DATE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;DIM_EMP_DATA.QVD&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;DIM_DEP_DATA:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;DEP_KEY, DEP_ID, DEP_NAME&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;DIM_DEP_DATA.QVD&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;FACT_EMP_DETAILS_DATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;EMP_KEY, DEP_KEY, MONTHLY_SALARY, INCENTIVE, SALARY_CREADITED_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;FACT_EMP_DETAILS_DATA.QVD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="color: #00ff00;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;WHERE &lt;SPAN style="font-family: 'Courier New'; font-size: 12px;"&gt;SALARY_CREADITED_DATE&lt;/SPAN&gt;&amp;gt;='2013-12-31'&lt;/SPAN&gt; //This I don't want to hard code I want to make it dynamic so user can select a date and load data greater and equal to a date. &lt;SPAN style="color: #00ff00; font-size: 12px; font-family: 'Courier New';"&gt;&lt;STRONG&gt;WHERE &lt;SPAN style="font-family: 'Courier New'; font-size: 12px;"&gt;SALARY_CREADITED_DATE&lt;/SPAN&gt;&amp;gt;=@PRM_DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #00ff00; font-style: inherit; font-size: 12px; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000;"&gt;This I don't want to hard code I want to make it dynamic so user can select a date and load data greater and equal to a selected date something like this &lt;/SPAN&gt;&lt;SPAN style="; color: #000000; font-size: 12px; font-family: 'Courier New';"&gt;&lt;STRONG&gt;WHERE &lt;SPAN style="font-family: 'Courier New'; font-size: 12px;"&gt;SALARY_CREADITED_DATE&lt;/SPAN&gt;&amp;gt;=@PRM_DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 03:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602972#M222822</guid>
      <dc:creator />
      <dc:date>2014-02-04T03:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Parameters (Like SSRS) in the query of QVW files to retrieve only required data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602973#M222823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use this code instead of hard coding.&lt;/P&gt;&lt;P&gt;Var:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Input('Enter the Date in M/DD/YYYY','Input box') AS Date1&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Var1=Num(Peek('Date1',0,'Var'));&lt;/P&gt;&lt;P&gt;Drop Table Var;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;Where Num(Date)&amp;lt;=$(Var1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 04:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602973#M222823</guid>
      <dc:creator />
      <dc:date>2014-02-04T04:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Parameters (Like SSRS) in the query of QVW files to retrieve only required data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602974#M222824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have publisher refer to the following thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the parameter as part of your where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/21832"&gt;Passing Parameter to Publisher task&lt;/A&gt;&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 style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;EMP_KEY, DEP_KEY, MONTHLY_SALARY, INCENTIVE, SALARY_CREADITED_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;FACT_EMP_DETAILS_DATA.QVD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #00ff00; font-size: 9pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;WHERE &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SALARY_CREADITED_DATE&lt;/SPAN&gt;&amp;gt;=$(p.Date);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #00ff00; font-size: 9pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #00ff00; font-size: 9pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;p.Date is the parameter defined in publisher. &lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 04:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602974#M222824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-04T04:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Parameters (Like SSRS) in the query of QVW files to retrieve only required data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602975#M222825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/P1ratyush"&gt;P1ratyush&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;your ans helped me and it worked as expected but I need further advise to set default values to variable.&lt;/P&gt;&lt;P&gt;V_PRM_START_DT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;INPUT('Enter the Start Date in YYYYMMDD','Input box') AS START_DATE AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;LET PRM_START_DT=NUM(PEEK('START_DATE',0,'V_PRM_START_DT'));&lt;/P&gt;&lt;P&gt;DROP TABLE V_PRM_START_DT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_PRM_END_DT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;INPUT('Enter the End Date in YYYYMMDD','Input box') AS END_DATE AUTOGENERATE 1;&lt;/P&gt;&lt;P&gt;LET PRM_END_DT=NUM(PEEK('END_DATE',0,'V_PRM_END_DT'));&lt;/P&gt;&lt;P&gt;DROP TABLE V_PRM_END_DT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT_EMP_DATA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_KEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMP_KEY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MONTHLY SALARY AMOUNT], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [INCENTIVE AMOUNT]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;FACT_EMP_DATA.QVD (qvd)&lt;/P&gt;&lt;P&gt;WHERE DATE_KEY&amp;gt;=$(PRM_START_DT) AND DATE_KEY&amp;lt;=$(PRM_END_DT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE DATE_KEY &lt;EM&gt;&lt;STRONG&gt;BETWEEN&lt;/STRONG&gt;&lt;/EM&gt; $(PRM_START_DT) AND $(PRM_END_DT) is not working but WHERE DATE_KEY&amp;gt;=$(PRM_START_DT) AND DATE_KEY&amp;lt;=$(PRM_END_DT) is working. I would like to know why?&lt;/P&gt;&lt;P&gt;Is &lt;EM&gt;&lt;STRONG&gt;BETWEEN&lt;/STRONG&gt;&lt;/EM&gt; not valid command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to assign default values (Something like this CONVERT(VARCHAR(10),Getdate()-30,112) for Start Date and CONVERT(VARCHAR(10),Getdate(),112) for End Date) to my Input parameters so that if some one is not willing to enter these dates then it will reload with default values. How can I achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 05:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-Parameters-Like-SSRS-in-the-query-of-QVW-files-to/m-p/602975#M222825</guid>
      <dc:creator />
      <dc:date>2014-02-05T05:47:26Z</dc:date>
    </item>
  </channel>
</rss>

