<?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 Date count within month format problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760432#M1049819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble figuring this out, and I can not find the entire format for dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have dates in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2014-09-16 15:32:05.6792259 +02:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm trying to count the number of fault occurences within a month using the following function:&lt;/P&gt;&lt;P&gt;=count({(&amp;lt; CreatedAt&amp;lt;{'2014-02-01 00:00:00.0000000 +02:00'}&amp;amp;&amp;amp; CreatedAt&amp;gt;{'2014-01-01 00:00:00.0000000 +02:00'} &amp;gt;)}FaultId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where column CreatedAt contains the date. This examples should count all dates in January, as the date has to be greater than January 1st and smaller than February 1st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this doesn't work at all and I'm having a hard time finding the right format for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What format should I use?&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;Sijmen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 09:34:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-04T09:34:33Z</dc:date>
    <item>
      <title>Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760432#M1049819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble figuring this out, and I can not find the entire format for dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have dates in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2014-09-16 15:32:05.6792259 +02:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm trying to count the number of fault occurences within a month using the following function:&lt;/P&gt;&lt;P&gt;=count({(&amp;lt; CreatedAt&amp;lt;{'2014-02-01 00:00:00.0000000 +02:00'}&amp;amp;&amp;amp; CreatedAt&amp;gt;{'2014-01-01 00:00:00.0000000 +02:00'} &amp;gt;)}FaultId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where column CreatedAt contains the date. This examples should count all dates in January, as the date has to be greater than January 1st and smaller than February 1st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this doesn't work at all and I'm having a hard time finding the right format for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What format should I use?&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;Sijmen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760432#M1049819</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760433#M1049820</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;Try with Set analysis like this&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;Count({&amp;lt; CreatedAt={"&amp;lt;'2014-02-01 00:00:00.0000000 +02:00'&amp;gt;'2014-01-01 00:00:00.0000000 +02:00'"} &amp;gt;}FaultId)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760433#M1049820</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-04T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760434#M1049821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CreatedAt&lt;/SPAN&gt;={"&amp;gt;=$(=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'2014-02-01 00:00:00.0000000 +02:00'&lt;/SPAN&gt;'))&amp;lt;=$(=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2014-01-01 00:00:00.0000000 +02:00'&lt;/SPAN&gt;))"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FaultId&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760434#M1049821</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2014-11-04T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760435#M1049822</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;Try this:&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;count({&amp;lt;CreatedAt={'&amp;gt;=$(=num(makedate(2014,1)))&amp;lt;$(=num(makedate(2014,2)))'}&amp;gt;}FaultId)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760435#M1049822</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-04T09:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760436#M1049823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, thanks for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow your function returns only 0's, also I don't quite understand how your function works. Could you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760436#M1049823</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760437#M1049824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your function returns only 0's as well. I believe CreatedAt is not recognized as a date, but rather as a string. Does this prevent the dates from being compared properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: that appeared to be the problem. I changed DateFormat to 'DateFormat='YYYY-MM-DD hh:mm:ss.fffffff +02:00' in the load script, and that solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760437#M1049824</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date count within month format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760438#M1049825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If CreatedAt contains strings values instead of timestamps then you can only do text comparisons. You can use the timestamp# or date# function in the script to create a timestamp or date value from a string. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 10:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-count-within-month-format-problem/m-p/760438#M1049825</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-04T10:12:51Z</dc:date>
    </item>
  </channel>
</rss>

