<?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 CountIf - help needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927057#M320829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a column called HOURS_SINCE_DISCHARGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its contents vary between 0 and 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count all instances of non-zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have 13 records, 5 are zero (contents = "0") and 8 non zero. I am not sure if the 0 is a number or text string, but the data was imported from Excel and was a number format, value 0, in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what what expression would I use to count non zero?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Am new to Qlik).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below, but it's counting every instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(HOURS_SINCE_DISCHARGE&amp;gt;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this in the Expression field in the Data section of the report element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping with such a simple question. I googled an answer first, but couldn't find anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2015 02:40:03 GMT</pubDate>
    <dc:creator>timmarsh</dc:creator>
    <dc:date>2015-09-24T02:40:03Z</dc:date>
    <item>
      <title>CountIf - help needed</title>
      <link>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927057#M320829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a column called HOURS_SINCE_DISCHARGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its contents vary between 0 and 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count all instances of non-zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have 13 records, 5 are zero (contents = "0") and 8 non zero. I am not sure if the 0 is a number or text string, but the data was imported from Excel and was a number format, value 0, in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what what expression would I use to count non zero?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Am new to Qlik).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below, but it's counting every instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(HOURS_SINCE_DISCHARGE&amp;gt;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this in the Expression field in the Data section of the report element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping with such a simple question. I googled an answer first, but couldn't find anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 02:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927057#M320829</guid>
      <dc:creator>timmarsh</dc:creator>
      <dc:date>2015-09-24T02:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: CountIf - help needed</title>
      <link>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927058#M320830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&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;=Count(If(HOURS_SINCE_DISCHARGE &amp;gt; 0, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;HOURS_SINCE_DISCHARGE))&lt;/STRONG&gt; or&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({&amp;lt;HOURS_SINCE_DISCHARGE = {'&amp;gt;0'}&amp;gt;} &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;HOURS_SINCE_DISCHARGE)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 05:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927058#M320830</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-24T05:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: CountIf - help needed</title>
      <link>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927059#M320831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Response went into moderation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99901_Capture.PNG" style="height: 266px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 05:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927059#M320831</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-24T05:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: CountIf - help needed</title>
      <link>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927060#M320832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(If(NOT WildMatch(hours_since_discharge,'0'),hours_since_discharge))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;happy to help!&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 05:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927060#M320832</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-09-24T05:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: CountIf - help needed</title>
      <link>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927061#M320833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! Worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a clear user guide on matching/functions/how to write these checks? Google couldn't reveal it which is why I ended up posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 00:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CountIf-help-needed/m-p/927061#M320833</guid>
      <dc:creator>timmarsh</dc:creator>
      <dc:date>2015-09-28T00:03:18Z</dc:date>
    </item>
  </channel>
</rss>

