<?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: Re: Setting Begin and End Dates in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561907#M692315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Zagzebski,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In that case you can use a string variable, in place of a date variable, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and use it with $() function in your where clause while loading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Refer attached QVW for details.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The script contains related comments..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;KD&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Sep 2013 20:26:03 GMT</pubDate>
    <dc:creator>kedar_dandekar</dc:creator>
    <dc:date>2013-09-02T20:26:03Z</dc:date>
    <item>
      <title>Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561899#M692307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be simple but it is the fist time I have had to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to have a beginning and ending reporting month variable set at the beginning of my script what is the proper function/syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is :&lt;/P&gt;&lt;P&gt;Begin Month Date = 01/01/2012&lt;/P&gt;&lt;P&gt;End Month Date = 06/30/2012&lt;/P&gt;&lt;P&gt;Not sure of the exact syntax or if LET or SET is the proper way to establish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 17:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561899#M692307</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-09-02T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561900#M692308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zagzebski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use something like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartMonth = MontStart($(vToday));&lt;/P&gt;&lt;P&gt;LET vEndMonth = MonthEnd($(vToday));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 18:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561900#M692308</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2013-09-02T18:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561901#M692309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jereon - Is there a way to hard code the dates I refereence above...Begin Date = 1/1/2012 and End Date= 6/30/2012 in the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 18:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561901#M692309</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-09-02T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561902#M692310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDate = Date#('2015-12-31');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 18:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561902#M692310</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2013-09-02T18:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561903#M692311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just another &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;way to do so would be using MakeDate function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vBeginMonthDate = MakeDate(2012, 01, 01);&lt;/P&gt;&lt;P&gt;LET vEndMonthDate = MakeDate(2012, 06, 30);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 18:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561903#M692311</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-02T18:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561904#M692312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks KD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To utilize the variable what do I need to do? I tried to use it in a table I was loading but it says field not found?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561904#M692312</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-09-02T19:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561905#M692313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zagzebski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you planning to use the Begin and End date variables to generate your master calendar data. &lt;/P&gt;&lt;P&gt;or you want to use these variables to filter data from a table while loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561905#M692313</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-02T20:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561906#M692314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KD -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use them in a WHERE clause in a couple of the tables I am loading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561906#M692314</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-09-02T20:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561907#M692315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Zagzebski,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In that case you can use a string variable, in place of a date variable, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and use it with $() function in your where clause while loading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Refer attached QVW for details.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The script contains related comments..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;KD&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561907#M692315</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-02T20:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561908#M692316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks KD - works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two quick follow ups:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This is part of a transform load so I want these dates to be available when I reload this data into my model. How can I get this so it loads into my variables of my model?&lt;/P&gt;&lt;P&gt;2. Also not 100% sure in the difference between the let variables and the set variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really apprecaite your help on this, thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561908#M692316</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-09-02T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561909#M692317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Zagzebski,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1. Pardon me, but I did not get the Transform load part, can you please elaborate on this (some example would help).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2. As regards to the SET and LET, the &lt;/SPAN&gt;main difference is that:&lt;/P&gt;&lt;P&gt;SET assigns the value on the right of the "=" sign as is, &lt;STRONG&gt;without evaluation&lt;/STRONG&gt; (string format), and&lt;/P&gt;&lt;P&gt;LET &lt;STRONG&gt;evaluates&lt;/STRONG&gt; the expression on the right of the "=" sign before assigning it to the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple example would be:&lt;/P&gt;&lt;P&gt;SET vDateExp1 = 3 + 4; //This stores the string '&lt;STRONG&gt;3 + 4&lt;/STRONG&gt;' in the variable, whereas&lt;/P&gt;&lt;P&gt;LET vDateExp2 = 3 + 4; //Evaluates the right hand side to &lt;STRONG&gt;7&lt;/STRONG&gt; and stores this value in the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 21:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561909#M692317</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-02T21:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561910#M692318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create a QVD off the file with these date variables. I was just wondering the best way to "move" that variable to the QVD file so I can upload it to a new QVW file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 21:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561910#M692318</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-09-02T21:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Setting Begin and End Dates in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561911#M692319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zagzebski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are creating a QVD file using these date variables (in the WHERE clause), the data in the QVD would already get filtered by the dates and stored into QVD file, right?&lt;/P&gt;&lt;P&gt;I am sorry, I did not quite get that part - 'Best way to Move the variable to the QVD file'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer attached QVW, in this, I have used the Date variable created using LET assignment, to filter table data (just another way), not sure if this is what you were looking for ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 21:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Begin-and-End-Dates-in-Script/m-p/561911#M692319</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-02T21:57:24Z</dc:date>
    </item>
  </channel>
</rss>

