<?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 Counting datetimes in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427804#M34146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am working on a project where employees submit documents. When they do so, I receive a datetime that includes the day and time they submitted their work. I need to count the number of datetime entries in my data to establish the number of documents submitted. Furthermore, I need to count the number of unique days in which documents were submitted by employees (they must submit at least one document for it to count as a day worked).&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;As an example, if I had the following dataset for an employee:&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;10/10/2017 1:00 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/10/2017 12:57 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/09/2017 1:07 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/06/2017 11:34 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/04/2017 9:02 AM&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;Then I need to know that there are 5 records for this employee and 4 unique days worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 18:20:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-10T18:20:01Z</dc:date>
    <item>
      <title>Counting datetimes</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427804#M34146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am working on a project where employees submit documents. When they do so, I receive a datetime that includes the day and time they submitted their work. I need to count the number of datetime entries in my data to establish the number of documents submitted. Furthermore, I need to count the number of unique days in which documents were submitted by employees (they must submit at least one document for it to count as a day worked).&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;As an example, if I had the following dataset for an employee:&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;10/10/2017 1:00 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/10/2017 12:57 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/09/2017 1:07 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/06/2017 11:34 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;10/04/2017 9:02 AM&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;Then I need to know that there are 5 records for this employee and 4 unique days worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427804#M34146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T18:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting datetimes</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427805#M34147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DateTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT Floor(DateTime))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427805#M34147</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T18:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting datetimes</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427806#M34148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count(DateTime) seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try Count(DISTINCT Floor(DateTime)), the numbers seem very low. With this method, the first employee returns 7 for submitted documents. When I run this query in SQL, 50 hits are returned. When I manually validate the number, 50 is correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427806#M34148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T20:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting datetimes</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427807#M34149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are saying that you expect 50 unique dates.... whereas it is showing only 7? May be check what those dates are using Concat&lt;/P&gt;&lt;P&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;STRONG&gt;Concat(DISTINCT DayName(DateTime), ', ')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have this, you might be able to troubleshoot why the other dates are not showing up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-datetimes/m-p/1427807#M34149</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-10T20:59:12Z</dc:date>
    </item>
  </channel>
</rss>

