<?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 create a start date and end date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111848#M897257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boppella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Front end You use Calendar range Like From --&amp;gt; To&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit Script -- &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DateStart &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; CAST&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'01/'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Parameter &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATETIME&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DateEnd &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATEADD&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DD&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;-1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATEADD&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;MM&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DateStart&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;))&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write in sql like start date and end date ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Nandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 12:38:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-04T12:38:37Z</dc:date>
    <item>
      <title>how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111841#M897250</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;I have one date field&amp;nbsp; name as WEEKLYDATE.&lt;/P&gt;&lt;P&gt;I need to create start date and end date by using WEEKLYDATE.&lt;/P&gt;&lt;P&gt;I will get data every week in M/D/YYYY format&lt;/P&gt;&lt;P&gt;When I select start date and end date user want to see last 52 weeks data only .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Regards&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111841#M897250</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111842#M897251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want this on the front end? Would you be able to provide a sample to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 13:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111842#M897251</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-02T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111843#M897252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I want this front end..&lt;/P&gt;&lt;P&gt;I created two calendar objects Start date and End date..&lt;/P&gt;&lt;P&gt;But I am not getting dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 07:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111843#M897252</guid>
      <dc:creator />
      <dc:date>2016-08-03T07:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111844#M897253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111844#M897253</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111845#M897254</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;I would take a look at the articles on Master calendars, then you can start building from there.&lt;/P&gt;&lt;P&gt;But Like Sunny has suggested if you could share some more information on exactly what you want and some examples it would help guide you better,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111845#M897254</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-03T08:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111846#M897255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I am getting date format is&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133545_pastedImage_54.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I created strat date and end date&amp;nbsp; the date format is coming like&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/133546_pastedImage_55.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;The dates are not coming into start date and end date.&lt;/P&gt;&lt;P&gt;I created two variables vStartDate and vEndDate and wrote =Min(WEEKLYDATE) and =Max(WEEKLYDATE)&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/133550_pastedImage_56.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;My requirement is user can select start date and end date and by default it will show past 52 weeks data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to change any in SET Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&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;TimeFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='h:mm:ss TT';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='MM/DD/YYYY';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;TimestampFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='M/D/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;MonthNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DayNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Mon;Tue;Wed;Thu;Fri;Sat;Sun'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Pls help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111846#M897255</guid>
      <dc:creator />
      <dc:date>2016-08-04T06:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111847#M897256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To me it looks like that you are date are not read as dates. Can you try a list box expression: Num(WEEKLYDATE) and see if you see the dates changing into numbers or not? If they don't then probably your WEEKLYDATE is a text field where you won't be able find Max and Min.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fix this in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Floor(Date#(WEEKLYDATE, 'MM-DD-YYYY hh:mm:ss'))) as &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;WEEKLYDATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then move from there. Also read here for more information related to dates&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 10:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111847#M897256</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-04T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a start date and end date range</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111848#M897257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boppella,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Front end You use Calendar range Like From --&amp;gt; To&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit Script -- &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DateStart &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; CAST&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #7d2727;"&gt;'01/'&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;Parameter &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATETIME&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #101094;"&gt;SET&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DateEnd &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATEADD&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DD&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;-1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; DATEADD&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;MM&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;@&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;DateStart&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;))&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write in sql like start date and end date ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Nandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 12:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-start-date-and-end-date-range/m-p/1111848#M897257</guid>
      <dc:creator />
      <dc:date>2016-08-04T12:38:37Z</dc:date>
    </item>
  </channel>
</rss>

