<?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: date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date/m-p/84059#M782173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks karthi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the variable of 01/01/2015 &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but after your suggestion of creating the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vReportYearStart = Date(01/01/2015,'dd/MM/yyyy') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am getting 01/01/2015 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and after that iam creating the below variable&amp;nbsp; to get &lt;SPAN style="font-size: 13.3333px;"&gt;2015/12/01 this date &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ReportYearAccumalate = MonthStart(AddMonths(Date#('$(vReportYearStart)'),-1)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but i am getting&amp;nbsp; 12-01-2014 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;please help what needs to be changed &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Mar 2018 06:22:01 GMT</pubDate>
    <dc:creator>smilingjohn</dc:creator>
    <dc:date>2018-03-25T06:22:01Z</dc:date>
    <item>
      <title>date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84056#M782170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;PLease&amp;nbsp; correct me if i am wrong .&lt;/P&gt;&lt;P&gt;I am trying to create a variable which shouwl hold the value 01/01/2015 for which i am describing in the script as metion below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vReportYearStart = =Date(YearStart(AddYears(01/01/2015,'MM/DD/YYYY'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advace&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/date/m-p/84056#M782170</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84057#M782171</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;You can use just this &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;Let vReportYearStart = =Date(01/01/2015,'MM/DD/YYYY')&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;Many Thanks&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;Karthik&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 06:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84057#M782171</guid>
      <dc:creator>karthikoffi27se</dc:creator>
      <dc:date>2018-03-25T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84058#M782172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;ÁddYears( 01/01/2015, 'MM/DD/YYYY')&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;AddYears needs an integer as second parameter, not a date format string. And it needs a data value as the first parameter. In this case you're giving it 1 divided by 1 divided by 2015, which is a very small number that corresponds to December 30th 1899.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want vReportYearStart to have the date value of the first of january of 2015 then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vReportYearStart = Date(MakeDate(2015),'DD/MM/YYYY');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 06:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84058#M782172</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-03-25T06:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84059#M782173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks karthi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the variable of 01/01/2015 &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but after your suggestion of creating the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vReportYearStart = Date(01/01/2015,'dd/MM/yyyy') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am getting 01/01/2015 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and after that iam creating the below variable&amp;nbsp; to get &lt;SPAN style="font-size: 13.3333px;"&gt;2015/12/01 this date &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ReportYearAccumalate = MonthStart(AddMonths(Date#('$(vReportYearStart)'),-1)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but i am getting&amp;nbsp; 12-01-2014 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;please help what needs to be changed &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 06:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84059#M782173</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2018-03-25T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84060#M782175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;You are correct&lt;/P&gt;&lt;P&gt;After creating the variable&lt;/P&gt;&lt;P&gt;Let vReportYearStart = Date(MakeDate(2015),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now i get 01/01/2015&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and i am creating the belwo variable to get 2015/12/01&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let vReportYearAccumalate = MonthStart(AddMonths(Date#('$(vReportYearStart)'),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after debugging i see nothing in the vReportYearAccumulate as shown in the below&amp;nbsp; screenshot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 06:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84060#M782175</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2018-03-25T06:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84061#M782176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That could be because there's a parenthesis missing at then end. And if you're using Monthstart then you don't need Addmonths as well. Monthstart also accepts an offset parameter: &lt;/P&gt;&lt;P&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vReportYearAccumalate = Date(MonthStart( $(vReportYearStart), -1),'DD/MM/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 06:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84061#M782176</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-03-25T06:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84062#M782178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&amp;nbsp; Gysbert&lt;/P&gt;&lt;P&gt;now it shos 1984&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;LET &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;vReportYearAccumalate = Date(MonthStart( $(vReportYearStart), -1),'DD/MM/YYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 15px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;otput is is attached in a screenshot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 07:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84062#M782178</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2018-03-25T07:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: date</title>
      <link>https://community.qlik.com/t5/QlikView/date/m-p/84063#M782179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vReportYearStart = Date(MakeDate(2015),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;LET vReportYearAccumalate = Date(MonthStart(MakeDate(2015), -1),'DD/MM/YYYY');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 09:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date/m-p/84063#M782179</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-03-25T09:05:44Z</dc:date>
    </item>
  </channel>
</rss>

