<?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: Count Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417075#M155059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checking for length is one of the validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validating pattern, validating data (e.g. hh part has number 00 thru 23, mm and ss parts have numbers 00 thru 59, month part has number 01 thru 12, date part has number 01 thru 28, 29, 30, or 31 depending on the month and year, etc.) are also to be performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data has 04-03-2012, do you interpret this as 3-Apr-2012 or 4-Mar-2012?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The checks that you need to add, depend on the source of data. If the source has bulit in several of these checks, you may skip some of the validations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can build expressions for validations in the script, depending on what you want to implement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jan 2013 14:00:00 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2013-01-12T14:00:00Z</dc:date>
    <item>
      <title>Count Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417072#M155056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count dates expression if date formate complete entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="215" style="width: 162px; height: 223px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="110"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;order_date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #008000;"&gt;2011-09-22 15:56:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #008000;"&gt;2011-09-23 21:01:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #008000;"&gt;2011-09-23 13:31:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #008000;"&gt;2011-09-22 19:36:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #008000;"&gt;2011-09-22 19:56:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;2011-09-21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;2011-09-22 19:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;2011-09-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result is &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;5 &lt;/STRONG&gt;&lt;/SPAN&gt;which is highlighted in green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 09:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417072#M155056</guid>
      <dc:creator />
      <dc:date>2013-01-12T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417073#M155057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try count(if(Len(Order_Date)=19,Order_Date)). This is not fool-proof, but may be enough for your purposes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 09:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417073#M155057</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-12T09:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417074#M155058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply, you are right any idea if user change order of date, year, month, day and time for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Arial; background-color: #ffffff;"&gt; formate of date is 2011-09-22 15:56:00 but user enter &lt;SPAN style="color: #008000; font-family: Arial; background-color: #ffffff;"&gt;20-09-2011 15:56:00, so how we catch?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; background-color: #ffffff; font-family: Arial;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; background-color: #ffffff; font-family: Arial;"&gt;Zain.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417074#M155058</guid>
      <dc:creator />
      <dc:date>2013-01-12T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417075#M155059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checking for length is one of the validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validating pattern, validating data (e.g. hh part has number 00 thru 23, mm and ss parts have numbers 00 thru 59, month part has number 01 thru 12, date part has number 01 thru 28, 29, 30, or 31 depending on the month and year, etc.) are also to be performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data has 04-03-2012, do you interpret this as 3-Apr-2012 or 4-Mar-2012?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The checks that you need to add, depend on the source of data. If the source has bulit in several of these checks, you may skip some of the validations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can build expressions for validations in the script, depending on what you want to implement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 14:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417075#M155059</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2013-01-12T14:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417076#M155060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This checks if a date can be made from the input with the specified date format:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; count(if(isnum(date#(Order_Date,'YYYY-MM-DD hh:mm:ss')) ,Order_Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately dates as 2011-09-25 19:84:12 are also accepted. So additional test is needed:&lt;/P&gt;&lt;P&gt;isnum(MakeTime(mid(Order_Date,12,2),mid(Order_Date,15,2),Mid(Order_Date,18,2)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bringing the total to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count(if(isnum(date#(Order_Date,'YYYY-MM-DD hh:mm:ss')) and isnum(MakeTime(mid(Order_Date,12,2),mid(Order_Date,15,2),Mid(Order_Date,18,2)))&amp;nbsp; ,Order_Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 14:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Dates/m-p/417076#M155060</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-12T14:41:09Z</dc:date>
    </item>
  </channel>
</rss>

