<?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: pass dynamic v in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100481#M365183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Let vDate = date(makedate(2010,01,01),'YYYY-MM-DD') // Date= 1 Jan 2010. you can change the date you want&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SQL SELECT * &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM NWind.dbo.Orders &lt;/STRONG&gt;&lt;/EM&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;EM&gt;&lt;STRONG&gt;Where OrderDate between '$(&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;vDate)' and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'$(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;vDate)';&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 05:38:10 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-05-09T05:38:10Z</dc:date>
    <item>
      <title>pass dynamic v</title>
      <link>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100478#M365180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading data based on following query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM NWind.dbo.Orders Where OrderDate&amp;gt;='1998-02-26';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to pass date entered by user as input field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2016 15:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100478#M365180</guid>
      <dc:creator />
      <dc:date>2016-05-08T15:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: pass dynamic v</title>
      <link>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100479#M365181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think yes. You can create the variable and get the data from user using the &lt;STRONG&gt;Input &lt;/STRONG&gt;statement option..&lt;/P&gt;&lt;P&gt;Try this.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: blue; font-size: 9.0pt; font-family: 'courier new', courier;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;='M/D/YYYY';&lt;BR /&gt; &lt;BR /&gt; T1:&amp;nbsp;&amp;nbsp; //Sample Table&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: blue;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;()+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;()-1) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;Rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;()*1000) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon;"&gt;sales&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: blue;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt; 1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: blue;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;()+1&amp;lt;=50;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;vDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;Input&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;('Please Enter the OrderDate (M/D/YYYY)', 'OrderDate Input');&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;&lt;BR /&gt; T2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt; T1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt;&amp;gt;='$(vDate)';&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black;"&gt; T1; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 02:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100479#M365181</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-05-09T02:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: pass dynamic v</title>
      <link>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100480#M365182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Depending on how you are taking user input (number, date in YYYY-MM-DD, or any other format), your variable might differ. But assuming that the user is going to input as 1998-02-26, you can try the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LET &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;vVarDate&lt;/SPAN&gt; = Date(Date#(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff6600;"&gt;vVar&lt;/SPAN&gt;, 'YYYY-MM-DD'), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;'YYYY-MM-DD')&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&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;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;FROM NWind.dbo.Orders&lt;/STRONG&gt;&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;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Where OrderDate&amp;gt;='$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;vVarDate&lt;/SPAN&gt;)';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Here user will enter 1998-02-26 in an input box on the front end to the variable &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff6600;"&gt;&lt;STRONG&gt;vVar&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 04:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100480#M365182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-09T04:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: pass dynamic v</title>
      <link>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100481#M365183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Let vDate = date(makedate(2010,01,01),'YYYY-MM-DD') // Date= 1 Jan 2010. you can change the date you want&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SQL SELECT * &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM NWind.dbo.Orders &lt;/STRONG&gt;&lt;/EM&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;EM&gt;&lt;STRONG&gt;Where OrderDate between '$(&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;vDate)' and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'$(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;vDate)';&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 05:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pass-dynamic-v/m-p/1100481#M365183</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-09T05:38:10Z</dc:date>
    </item>
  </channel>
</rss>

