<?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 Count if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220180#M73126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;It's my first time using QlikView and I'm facing with some doubts.&lt;BR /&gt;I would like to create an expression to calculate the NPS (Net Promoter Score). Basically the NPS formula is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(% of Promoters) - (% of Detractors)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Promoters&lt;/STRONG&gt; are those customers who gave us a grate of 9 or 10.&lt;BR /&gt;&lt;STRONG&gt;Detractors&lt;/STRONG&gt; are those customers who gave us a grate of 1 to 6.&lt;/P&gt;&lt;P&gt;If the customers gave us a grate of 7 or 8 he is considerated Neutral.&lt;BR /&gt;But, since it is the (&lt;STRONG&gt;%&lt;/STRONG&gt; of Promoters) - (&lt;STRONG&gt;%&lt;/STRONG&gt; of Detractos), the total number os respondents consider Neutrals. So I created the follow expression.&lt;/P&gt;&lt;P&gt;=((Count({$&amp;lt;[NPS] = {"&amp;gt;=9"}&amp;gt;} [NPS]))-(Count({$&amp;lt;[NPS] = {"&amp;lt;=6"}&amp;gt;} [NPS])))/count([NPS])&lt;/P&gt;&lt;P&gt;It's working good, but if I sort by NPS, choosing a gread of 5 in a ListBox for example, an NPS of 0% is spected, but the QlikView is showing 330%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me to create a better expression?&lt;/P&gt;&lt;P&gt;Thanks for your attention&lt;BR /&gt;Best Regards&lt;/P&gt;&lt;P&gt;Kelly Hellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 13:41:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-18T13:41:00Z</dc:date>
    <item>
      <title>Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220180#M73126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;It's my first time using QlikView and I'm facing with some doubts.&lt;BR /&gt;I would like to create an expression to calculate the NPS (Net Promoter Score). Basically the NPS formula is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(% of Promoters) - (% of Detractors)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Promoters&lt;/STRONG&gt; are those customers who gave us a grate of 9 or 10.&lt;BR /&gt;&lt;STRONG&gt;Detractors&lt;/STRONG&gt; are those customers who gave us a grate of 1 to 6.&lt;/P&gt;&lt;P&gt;If the customers gave us a grate of 7 or 8 he is considerated Neutral.&lt;BR /&gt;But, since it is the (&lt;STRONG&gt;%&lt;/STRONG&gt; of Promoters) - (&lt;STRONG&gt;%&lt;/STRONG&gt; of Detractos), the total number os respondents consider Neutrals. So I created the follow expression.&lt;/P&gt;&lt;P&gt;=((Count({$&amp;lt;[NPS] = {"&amp;gt;=9"}&amp;gt;} [NPS]))-(Count({$&amp;lt;[NPS] = {"&amp;lt;=6"}&amp;gt;} [NPS])))/count([NPS])&lt;/P&gt;&lt;P&gt;It's working good, but if I sort by NPS, choosing a gread of 5 in a ListBox for example, an NPS of 0% is spected, but the QlikView is showing 330%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me to create a better expression?&lt;/P&gt;&lt;P&gt;Thanks for your attention&lt;BR /&gt;Best Regards&lt;/P&gt;&lt;P&gt;Kelly Hellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220180#M73126</guid>
      <dc:creator />
      <dc:date>2011-04-18T13:41:00Z</dc:date>
    </item>
    <item>
      <title>Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220181#M73127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you provide some data's in excel file and give me the current qvw file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220181#M73127</guid>
      <dc:creator />
      <dc:date>2011-04-18T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220182#M73128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your attention,&lt;/P&gt;&lt;P&gt;Follow attached is the Excel Spreadsheet and the QlikView file.&lt;/P&gt;&lt;P&gt;Bye;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 15:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220182#M73128</guid>
      <dc:creator />
      <dc:date>2011-04-18T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220183#M73129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you have to compute the intersection between the current NPS selection and your inequality.&lt;/P&gt;&lt;P&gt;So your fomula will be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=((Count({$&amp;lt;[NPS] = [NPS] * {"&amp;gt;=9"}&amp;gt;} [NPS]))-(Count({$&amp;lt;[NPS] = [NPS] * {"&amp;lt;=6"}&amp;gt;} NPS])))/count({1&amp;lt;[NPS=]&amp;gt;}[NPS])&lt;/P&gt;&lt;P&gt;Also, I have add the {1&amp;lt;[NPS=]&amp;gt;} modifier in the denominator in order to have constant ratio.&lt;/P&gt;&lt;P&gt;Is it what you want to obtain ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 15:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220183#M73129</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-18T15:33:18Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220184#M73130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vicent,&lt;/P&gt;&lt;P&gt;Thanks for your attention, but this expression is not working.&lt;BR /&gt;When I pasted your formula, I got an error: "Error in set modifier expression" and after had pressed Apply, the gauge didn't show anything. Null Value independing of what is selected.&lt;/P&gt;&lt;P&gt;Do you know what is going on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 15:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220184#M73130</guid>
      <dc:creator />
      <dc:date>2011-04-18T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220185#M73131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oups, a bracket was deleted in the previous one :&lt;/P&gt;&lt;P&gt;=((Count({$&amp;lt;[NPS] = [NPS] * {"&amp;gt;=9"}&amp;gt;} [NPS]))-(Count({$&amp;lt;[NPS] = [NPS] * {"&amp;lt;=6"}&amp;gt;} &lt;B&gt;[&lt;/B&gt;NPS])))/count({1&amp;lt;[NPS=]&amp;gt;}[NPS])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 15:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220185#M73131</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-18T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220186#M73132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It's still not working,&lt;BR /&gt;and I've already considerated the bracket in the previous one. I got the same error right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 16:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220186#M73132</guid>
      <dc:creator />
      <dc:date>2011-04-18T16:13:24Z</dc:date>
    </item>
    <item>
      <title>Re. :Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220187#M73133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached your QVW with the corrected formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 16:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220187#M73133</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-18T16:23:30Z</dc:date>
    </item>
    <item>
      <title>Re. :Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220188#M73134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vicent,&lt;/P&gt;&lt;P&gt;Now it's working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind to help me with some others doubts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, have a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 16:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220188#M73134</guid>
      <dc:creator />
      <dc:date>2011-04-18T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re. :Count if</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if/m-p/220189#M73135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I want to create a chart (like a bar graph) with the average NPS by quarter, like:&lt;/P&gt;&lt;P&gt;(First Quarter) - NPS: 50%&lt;BR /&gt;(Secound Quarter) - NPS: 10%&lt;BR /&gt;(Third Quarter) - NPS: 20%&lt;BR /&gt;(Fourth Quarter) - NPS: 30%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the excel file I have the dates like (01/05/2011) - (MM/DD/YYY)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I consolidate and get the average by quarter? And show it in a chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Vicent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 16:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if/m-p/220189#M73135</guid>
      <dc:creator />
      <dc:date>2011-04-18T16:47:35Z</dc:date>
    </item>
  </channel>
</rss>

