<?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 if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475191#M1142278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this , you miss the = sign&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;count ({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max([Date Detected]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared] )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 09:26:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-03T09:26:51Z</dc:date>
    <item>
      <title>count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475189#M1142276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;count ({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$=(Max([Date Detected]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Can someone explain what is wrong with this expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;what its supposed to do is count all row where Fault Clearerd is less than the Max Date detected&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475189#M1142276</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-09-03T09:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475190#M1142277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could just be a mispositioned opening bracket and missing closing bracket:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;count ({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max([Date Detected]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared] )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475190#M1142277</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-03T09:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475191#M1142278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this , you miss the = sign&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;count ({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Max([Date Detected]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared] )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475191#M1142278</guid>
      <dc:creator />
      <dc:date>2013-09-03T09:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475192#M1142279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope niether of them are working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475192#M1142279</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-09-03T09:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475193#M1142280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ive been trying with this for a while and im unsure why im finding it so difficult. all it needs to do is count all record with the Fault Cleared is less than the max Date detected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475193#M1142280</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-09-03T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475194#M1142281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Nope niether of them are working.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you probably know from your work as a developer, "not working" is not a good issue description...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, start with checking if the dollar sign expansion results in something useful, put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Max([Date Detected])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get something, it's probably a date, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the format of that date value? What is the format of field [Fault Cleared] and what is your default date format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 09:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475194#M1142281</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-03T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475195#M1142282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry you are right not a good description but Im no developer, Im just trying to learn the tool for work, as you can understand its very difficicult for those of us who have no previous experience in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formats are all the same and are "dd/mm/yyyy"&lt;/P&gt;&lt;P&gt;Ive used the text box to give max Date detected, max date cleared and count date cleared and count Date detected,&lt;/P&gt;&lt;P&gt;all give the correct number and in reagrd to dates in the correct format &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 10:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475195#M1142282</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-09-03T10:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475196#M1142283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;count ({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Fault Cleared]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;"&amp;lt;=$(=Date( Max([Date Detected])))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Fault Cleared] )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 10:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475196#M1142283</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2013-09-03T10:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475197#M1142284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Next step would be to look at the full expression after the dollar sign expansion (e.g. by using a chart expression with no label, hovering over the label should show the evaluated expression then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometime QV evaluates a date like DD/MM/YYYY as math expression (two divisions), which results in a very low number...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try enclosing the date in single quotes:&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;count ({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared] &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;='$(=Max([Date Detected]))'" &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Cleared] )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 10:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475197#M1142284</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-03T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475198#M1142285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im sorry ive looked at every part of the formula and all seems to work and is in the same format but i simply cant get the expression to work, would you be prepared to have a look at it? I dont have the required permission to open what gets sent back but would be eternall ygrateful for inswtructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you an absolute star&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/ak860rtfaxekd5d/V9.2.qvw" title="https://www.dropbox.com/s/ak860rtfaxekd5d/V9.2.qvw"&gt;Dropbox - V9.2.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I completly understand if ur not willing to download it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 11:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475198#M1142285</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-09-03T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475199#M1142286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field Fault Cleared is not recognized as a timestamp by QV, because it does not match the default timestamp format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's format is indeed&lt;/P&gt;&lt;P&gt;'DD/MM/YY hh:mm:ss'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;25/01/13 20:07:02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's best to handle that in the load script, either by correting your default timestamp format, or by interpreting the value on load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;timestamp#([Fault Cleared],'DD/MM/YY hh:mm:ss') as [Fault Cleared],&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 12:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475199#M1142286</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-03T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475200#M1142287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I LOVE YOU!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 12:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475200#M1142287</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-09-03T12:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: count if</title>
      <link>https://community.qlik.com/t5/QlikView/count-if/m-p/475201#M1142288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help one of my customer with similar problems last week&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-family: arial, sans-serif;"&gt;Count({$&amp;lt; MatDatum={"&amp;lt;$(=Date(Today(), 'YYYYMMDD'))"} &amp;gt;} NyckelHuvudMITPLO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in you case can this works?&lt;/P&gt;&lt;P&gt;Count({$&amp;lt; [Fault Cleared] = {"&amp;lt;=$(=Date(Max([Date Detected]), 'DD/MM/YYYY'))"} &amp;gt;} [Fault Cleared])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 12:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-if/m-p/475201#M1142288</guid>
      <dc:creator>antose</dc:creator>
      <dc:date>2013-09-03T12:22:11Z</dc:date>
    </item>
  </channel>
</rss>

