<?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/553213#M1145301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the fields need to be converted to date format and try using the below formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Date Detected]={"=$([Date Cleared])"}&amp;gt;}[Fault Status])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Basil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 09:21:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-30T09:21:45Z</dc:date>
    <item>
      <title>Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553204#M1145292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the follwing expression in Qlikview, It works when the [Date Cleared] is text but not when it refers to a collumn.&lt;/P&gt;&lt;P&gt;what its supposed to do is count how many times the date detected is the same as date cleared. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date Detected]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date Cleared]&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 Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I would appreciate if you could explain where im going wrong as im trying to learn qlikview from an excel background and the above expression is subtly different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553204#M1145292</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-08-30T08:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553205#M1145293</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;Try this If(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date Detected]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date Cleared]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,Count(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Fault Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;),'Do something if both are not same ').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it helps you .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Amuthabharathi. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553205#M1145293</guid>
      <dc:creator />
      <dc:date>2013-08-30T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553206#M1145294</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date Detected]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={"=&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;[Date Detected]&lt;/SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date Cleared]"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Fault Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553206#M1145294</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-30T08:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553207#M1145295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if both dates are in the same table, i would do an if statement in the script:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;...,&lt;/P&gt;&lt;P&gt;if([Date Detected] = [Date Cleared], 1, 0) as xxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the frontend you can sum(xxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats the best way in my opinion.&lt;/P&gt;&lt;P&gt;in set analysis it must be the same format (exactly)! maybe that is the reason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553207#M1145295</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2013-08-30T08:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553208#M1145296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date Detected]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={"=&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;[Date Detected]&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date Cleared]"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Fault Status]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553208#M1145296</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-30T08:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553209#M1145297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Set Analysis Qlikview always compares the text values of the fields, not the numeric value. So when comparing dates make sure you have the same formatting applied to that field, and not compare, say, "1 Jan 2013" with "01/01/2013"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553209#M1145297</guid>
      <dc:creator />
      <dc:date>2013-08-30T08:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553210#M1145298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there nust be someting wrong with my formatting as it gives the correct figures for 2 days in the month but for the life of me i dont know. I have used the format printer in excel to make sure everyhting is exactly the same and nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553210#M1145298</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-08-30T08:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553211#M1145299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first stable the format of the dates, they might be in character format&lt;/P&gt;&lt;P&gt;use LEFT, RIGHT, MID to divide the whole string then by using MAKEDATE create the date then use it in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solve ur problem.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553211#M1145299</guid>
      <dc:creator />
      <dc:date>2013-08-30T09:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553212#M1145300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I continued to play with all the expressions given and this eventually worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fault Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=[Date Detected]=[Date Cleared]"&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 Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;can someone confirm that I understand this correctly, its saying count [Fault Id] if [Date Detected] =[Date Cleared].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I havnt a clue what the last [Fault Id] is for or what the &amp;lt;&amp;gt; are for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks for all the help guys&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553212#M1145300</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2013-08-30T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/553213#M1145301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the fields need to be converted to date format and try using the below formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Date Detected]={"=$([Date Cleared])"}&amp;gt;}[Fault Status])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Basil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 09:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/553213#M1145301</guid>
      <dc:creator />
      <dc:date>2013-08-30T09:21:45Z</dc:date>
    </item>
  </channel>
</rss>

