<?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 Count if two dates match. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533035#M1139977</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;I am trying to count the number of (sales) deals in a given month for sales agents that were boarded in that month only.&amp;nbsp; I am using the MonthEnd function on both the sales agent boarding time stamp and the deal time stamp, then I am trying to say if the two dates are equal, count the deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone send me a script to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[MonthEnd(Deal.ApprovalDate)] = ([MonthEnd(SalesAgent.DateCreated)])&amp;gt;}Deal.ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this ends up counting the number of deals in two adjacent months, i.e, June &amp;amp; July when I only want June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2013 23:43:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-17T23:43:49Z</dc:date>
    <item>
      <title>Count if two dates match.</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533035#M1139977</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;I am trying to count the number of (sales) deals in a given month for sales agents that were boarded in that month only.&amp;nbsp; I am using the MonthEnd function on both the sales agent boarding time stamp and the deal time stamp, then I am trying to say if the two dates are equal, count the deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone send me a script to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[MonthEnd(Deal.ApprovalDate)] = ([MonthEnd(SalesAgent.DateCreated)])&amp;gt;}Deal.ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this ends up counting the number of deals in two adjacent months, i.e, June &amp;amp; July when I only want June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 23:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533035#M1139977</guid>
      <dc:creator />
      <dc:date>2013-09-17T23:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count if two dates match.</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533036#M1139978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Deal.ID&lt;/SPAN&gt; = {"=Floor(MonthEnd(Deal.ApprovalDate))=Floor(MonthEnd(SalesAgent.DateCreated))"}&amp;gt;}Deal.ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 00:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533036#M1139978</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-09-18T00:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count if two dates match.</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533037#M1139979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This returns no deals, 0.&amp;nbsp; Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 16:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-two-dates-match/m-p/533037#M1139979</guid>
      <dc:creator />
      <dc:date>2013-09-23T16:19:18Z</dc:date>
    </item>
  </channel>
</rss>

