<?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 an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855894#M1006754</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;For Positive Count : Sum(If([Header4] &amp;gt;= 0, 1))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For Negative Count : Sum(If([Header4] &amp;lt; 0, 1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope thsi helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 05:31:55 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-05-14T05:31:55Z</dc:date>
    <item>
      <title>Count an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855892#M1006752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Good day.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;My english isnt good, so I'll try to explain. I have a percentage value, you get what expression of the &lt;STRONG&gt;average current year&lt;/STRONG&gt; divided by the &lt;STRONG&gt;average last year&lt;/STRONG&gt; , this percentage gives me result in a negative or positive value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;I need to know how I could count how many of these results are negative or positive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;(100/150) -1 = -0.33&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;(175/200)-1 = -0.12&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;(225/125)-1 = 0.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; border: none; background: white;" width="245"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD style="border: 1pt solid black; padding: 1.5pt; background: #6690bc;" valign="bottom"&gt;&lt;P&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; padding: 1.5pt; background: #6690bc;" valign="bottom"&gt;&lt;P&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; padding: 1.5pt; background: #6690bc;" valign="bottom"&gt;&lt;P&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; padding: 1.5pt; background: #6690bc;" valign="bottom"&gt;&lt;P&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;A&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;150&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;-33%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;B&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;-12%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;C&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;225&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-style: none solid solid none; border-bottom-color: black; border-bottom-width: 1pt; border-right-color: black; border-right-width: 1pt; padding: 1.5pt;" valign="bottom"&gt;&lt;P&gt;80%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;To count the result would be one positive and 2 negative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;How I make this count of a calculated expression ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 22:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855892#M1006752</guid>
      <dc:creator />
      <dc:date>2015-05-13T22:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855893#M1006753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Positive count expr: Count(If([Header 2] &amp;gt; [Header 3],1)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Negative count expr: Count(If([Header 2] &amp;lt; [Header 3],1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 05:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855893#M1006753</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-14T05:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855894#M1006754</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;For Positive Count : Sum(If([Header4] &amp;gt;= 0, 1))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For Negative Count : Sum(If([Header4] &amp;lt; 0, 1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hope thsi helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 05:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-an-expression/m-p/855894#M1006754</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-14T05:31:55Z</dc:date>
    </item>
  </channel>
</rss>

