<?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 is not matching ! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341761#M413239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As You have Group By in script,&lt;/P&gt;&lt;P&gt;may be you need Aggr(...,branch) and optionally DISTINCT&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 08:03:46 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-06-09T08:03:46Z</dc:date>
    <item>
      <title>Count is not matching !</title>
      <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341759#M413237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually I am running this script in SQL server ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select branch, count(ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM XYZ&amp;nbsp; where (date(Field1)+day(15)) &amp;lt;= GETDATE() group by branch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Qlikview expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(If((Date(Field1) + 15) &amp;lt;= DATE(now()),ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are giving different counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also TODAY() function doesn't gives today's date in Qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 07:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341759#M413237</guid>
      <dc:creator />
      <dc:date>2017-06-09T07:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count is not matching !</title>
      <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341760#M413238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for Today(0), Today(1) and Today(2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 07:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341760#M413238</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-06-09T07:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count is not matching !</title>
      <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341761#M413239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As You have Group By in script,&lt;/P&gt;&lt;P&gt;may be you need Aggr(...,branch) and optionally DISTINCT&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 08:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341761#M413239</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-09T08:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count is not matching !</title>
      <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341762#M413240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think no need of AGGR() bcoz I am using Branch as a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today(0), Today(1) and Today(2): Gives same count as before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 09:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341762#M413240</guid>
      <dc:creator />
      <dc:date>2017-06-09T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count is not matching !</title>
      <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341763#M413241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Field1 = {"$(=&lt;SPAN style="color: #ff0000;"&gt;'&amp;lt;=' &amp;amp;&lt;/SPAN&gt; Date(Today() - 15))"}&lt;/SPAN&gt;&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where check that &lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;=Date(Today() - 15)&lt;/STRONG&gt;&lt;/SPAN&gt; gives the date you are looking for and in the format of Field1 date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; Added &lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #ff0000;"&gt;'&amp;lt;=' &amp;amp;&lt;/SPAN&gt; &lt;/STRONG&gt;to fix my expression to look at Field1 where is it less than or equal to Today()-15&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 09:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341763#M413241</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-09T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count is not matching !</title>
      <link>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341764#M413242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT {&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Field1 = {"$(=Date(Today() - 15))"}&lt;/SPAN&gt;&amp;gt;} ID) what Sunny said looks correct to me as well&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 12:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-is-not-matching/m-p/1341764#M413242</guid>
      <dc:creator>pipuindia99</dc:creator>
      <dc:date>2017-06-09T12:06:18Z</dc:date>
    </item>
  </channel>
</rss>

