<?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 with a Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669302#M243275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be a similar type issue but not as complex.&amp;nbsp; I do not see how to extrapolate that example into my scenario.&amp;nbsp; Can the calculation have additional limits applied to it?&amp;nbsp; In my case, Source?&amp;nbsp; I need to show by my two sources as well as a total (i.e., three different expression values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 17:19:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-28T17:19:40Z</dc:date>
    <item>
      <title>Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669296#M243269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do calculations on the last 15 runs of some test data.&amp;nbsp; I can determine the number of tests Count(Distinct Test_Name), I can determine the percentage that pass (I have a PassCount and TestCount value in the data).&amp;nbsp; However, what I now am being asked to do is count the number of tests (count Test_Name) WHERE (PassCount / TestCount) &amp;gt; .93. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried several different items all of which are flagged as invalid formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if((PassCount / TestCount) &amp;gt;= .93), 1, 0)&lt;/P&gt;&lt;P&gt;Count(if((PassCount / TestCount) &amp;gt;= .93), Distinct Test_Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where to go from here.&amp;nbsp; The individual tests may or may not have 15 tests.&amp;nbsp; Each test and its result are on a different row in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, using v11 SP5/6 (depending on which user will end up using the file) and I am relatively new to QV having been using it about six weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669296#M243269</guid>
      <dc:creator />
      <dc:date>2014-07-28T16:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669297#M243270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sample data file would help. Can you attach/share one ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669297#M243270</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-07-28T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669298#M243271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see this post: &lt;A href="https://community.qlik.com/thread/90211"&gt;Count IF in QlikView (Number of Days)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669298#M243271</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2014-07-28T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669299#M243272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also set a new flag of tests with over .93 in the load statement and sum this flag up in your charts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If( (PassCount/TestCount) &amp;gt;= .93, 1) as TestFlag&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI, you can use Sum(TestFlag) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669299#M243272</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669300#M243273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Document with some sample data is attached.&amp;nbsp; I have a couple of pivots/tables showing data and some statistics boxes at the top showing overall info.&amp;nbsp; What I can't figure out is populating the rightmost statistics box (highlighted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669300#M243273</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669301#M243274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached file.&amp;nbsp; Sorry, responded to my post, not this one but it is now available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669301#M243274</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669302#M243275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be a similar type issue but not as complex.&amp;nbsp; I do not see how to extrapolate that example into my scenario.&amp;nbsp; Can the calculation have additional limits applied to it?&amp;nbsp; In my case, Source?&amp;nbsp; I need to show by my two sources as well as a total (i.e., three different expression values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669302#M243275</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669303#M243276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems like it could work but I am loading the data from SQL and am not sure how I can tell it to Sum(PassCount) / Sum(TestCount) by Test_Name.&amp;nbsp; Perhaps I need to improve my SQL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669303#M243276</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669304#M243277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok . looks like you need an advanced aggregation to figure out how many tests had a greater than 93% pass rate over their individual runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(sum(PassCount)/sum(TestCount) &amp;gt; .93,1,0),Test_Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also attached is an example QVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669304#M243277</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-07-28T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count If with a Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669305#M243278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; Exactly what I needed.&amp;nbsp; Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-with-a-Formula/m-p/669305#M243278</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:41:05Z</dc:date>
    </item>
  </channel>
</rss>

