<?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 How to use date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466240#M1152865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build two dates: in this year 2013 i like to build 20130101 - 20131231. The next year i need 20140101 - 20141231.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It mean it is only the year i need to caluculate the date and month is static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Gunnar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2013 13:31:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-21T13:31:33Z</dc:date>
    <item>
      <title>How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466240#M1152865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build two dates: in this year 2013 i like to build 20130101 - 20131231. The next year i need 20140101 - 20141231.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It mean it is only the year i need to caluculate the date and month is static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Gunnar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 13:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466240#M1152865</guid>
      <dc:creator />
      <dc:date>2013-03-21T13:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466241#M1152866</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;These expressions calculate these dates based on the current year.&amp;nbsp; What are you using them for?&amp;nbsp; Just display or in the script?&amp;nbsp; Let me know if you need more help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year Start and End&lt;/P&gt;&lt;P&gt;Date(YearStart(Today()),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;Date(YearEnd(Today()),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next Year Start and End&lt;/P&gt;&lt;P&gt;Date(YearStart(AddYears(Today(),1)),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;Date(YearEnd(AddYears(Today(),1)),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 13:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466241#M1152866</guid>
      <dc:creator />
      <dc:date>2013-03-21T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466242#M1152867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank's for fast answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will use it in expression like this &lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;=3000&amp;lt;=3999'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VoDt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;Year0101&amp;lt;Year1231'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcAm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Year0101 and Year1231 should be 20130101 and 20131231&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;//Gunnar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 15:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466242#M1152867</guid>
      <dc:creator />
      <dc:date>2013-03-21T15:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466243#M1152868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&amp;nbsp; Good luck.&amp;nbsp; Can you give me a 'correct answer' if it works, please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 16:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466243#M1152868</guid>
      <dc:creator />
      <dc:date>2013-03-21T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466244#M1152869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i test result of a single expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I i just want to see the result of: Date(YearStart(Today()),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Gunnar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 10:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466244#M1152869</guid>
      <dc:creator />
      <dc:date>2013-03-22T10:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466245#M1152870</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try below expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum( {$&amp;lt;AcNo= {'&amp;gt;=3000&amp;lt;=3999'},VoDt= {'&amp;gt;$(=date(yearstart(VoDt,0,4),'YYYYMMDD'))&amp;lt;$(=date(yearend(VoDt,0,4),'YYYYMMDD'))'}&amp;gt;} AcAm) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 10:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466245#M1152870</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-22T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466246#M1152871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm i get 0 with this expression: (Expression is OK, but the result of expression is 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AcNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;=3000&amp;lt;=3999'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VoDt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'&amp;gt;$(=date(yearstart(today),'YYYYMMDD'))&amp;lt;$(=date(yearend(today),'YYYYMMDD'))'}&amp;gt;} AcAm) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I asume i say with this espression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum filed AcAM (Ammount) with AcNo (AccountNr) between 3000 and 3999 and VoDt (VoucherDate) between the start of current year and the end of current year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;/Gunnar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 12:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466246#M1152871</guid>
      <dc:creator />
      <dc:date>2013-03-22T12:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466247#M1152872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you are getting zero because you didnt open and close the parenthesis after the Today() functions.&amp;nbsp; It should look like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;AcNo&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;= {'&amp;gt;=3000&amp;lt;=3999'},&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;VoDt&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;= {'&amp;gt;$(=date(yearstart(today()),'YYYYMMDD'))&amp;lt;$(=date(yearend(today()),'YYYYMMDD'))'}&amp;gt;} AcAm)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything else looks good as long as the dates are the same format.&amp;nbsp; Is VoDt formatted like YYYYMMDD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haushik, your expression will start the year in April.&amp;nbsp; Yearstart would be 20130401 where it should be 20130101, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 12:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date/m-p/466247#M1152872</guid>
      <dc:creator />
      <dc:date>2013-03-22T12:55:40Z</dc:date>
    </item>
  </channel>
</rss>

