<?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 doesn't do it correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730701#M1085026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, i'am facing a new problem and it's a little hard to explain because of is complexity.&lt;/P&gt;&lt;P&gt;What i pretend is to count every REA where RaiserPlantID = Responsible when I've only one of the plants selected it's everything alright and the sum calculates correctly but the count not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At red it's whats happening and green it's what is desired, so when the responsible = raiser is PlantResp when isn't is OthersResp, but the problem is when the Responsibility is between raisers and both are selected. With the table is easier to understand.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="61005" alt="Untitledasdasdads.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61005_Untitledasdasdads.png" style="width: 620px; height: 187px;" /&gt;&lt;/P&gt;&lt;P&gt;Has you can see in the next screen the id 936578 it's indirect selected but it doesn't count it but it sum is value.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="61022" alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61022_Untitled.png" style="width: 620px; height: 166px;" /&gt;&lt;/P&gt;&lt;P&gt;The 979 should count 44 and it count 43 but the sum includes 44 values!&lt;/P&gt;&lt;P&gt;My sum is:&lt;/P&gt;&lt;P&gt;=sum(if(RaiserPlantID = Responsible, (Auth*XRATE2USD),))&lt;/P&gt;&lt;P&gt;My count:&lt;/P&gt;&lt;P&gt;=Count(if(RaiserPlantID = Responsible, id,))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE:&lt;/P&gt;&lt;P&gt;It's a bookmark saved with selection, if you export to excel, the bottom table you will see that exists 13 - REA 979 but qlikview only counts 10&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2014 15:38:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-23T15:38:06Z</dc:date>
    <item>
      <title>Count doesn't do it correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730701#M1085026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, i'am facing a new problem and it's a little hard to explain because of is complexity.&lt;/P&gt;&lt;P&gt;What i pretend is to count every REA where RaiserPlantID = Responsible when I've only one of the plants selected it's everything alright and the sum calculates correctly but the count not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At red it's whats happening and green it's what is desired, so when the responsible = raiser is PlantResp when isn't is OthersResp, but the problem is when the Responsibility is between raisers and both are selected. With the table is easier to understand.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="61005" alt="Untitledasdasdads.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61005_Untitledasdasdads.png" style="width: 620px; height: 187px;" /&gt;&lt;/P&gt;&lt;P&gt;Has you can see in the next screen the id 936578 it's indirect selected but it doesn't count it but it sum is value.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="61022" alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61022_Untitled.png" style="width: 620px; height: 166px;" /&gt;&lt;/P&gt;&lt;P&gt;The 979 should count 44 and it count 43 but the sum includes 44 values!&lt;/P&gt;&lt;P&gt;My sum is:&lt;/P&gt;&lt;P&gt;=sum(if(RaiserPlantID = Responsible, (Auth*XRATE2USD),))&lt;/P&gt;&lt;P&gt;My count:&lt;/P&gt;&lt;P&gt;=Count(if(RaiserPlantID = Responsible, id,))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE:&lt;/P&gt;&lt;P&gt;It's a bookmark saved with selection, if you export to excel, the bottom table you will see that exists 13 - REA 979 but qlikview only counts 10&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730701#M1085026</guid>
      <dc:creator />
      <dc:date>2014-06-23T15:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count doesn't do it correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730702#M1085030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample app if possible .&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkata &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730702#M1085030</guid>
      <dc:creator>venkatg6759</dc:creator>
      <dc:date>2014-06-23T15:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count doesn't do it correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730703#M1085033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made an upload with sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730703#M1085033</guid>
      <dc:creator />
      <dc:date>2014-06-24T09:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count doesn't do it correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730704#M1085035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it only counts 10 because for REA 979 because out of 13 only 10 matches &lt;/P&gt;&lt;P&gt;when RaiserPlant ID =Responsible&lt;/P&gt;&lt;P&gt;if you want if statement in set analysis for Qty you can use &lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;RaiserPlantID=P(Responsible)&amp;gt;}id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 16:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730704#M1085035</guid>
      <dc:creator>venkatg6759</dc:creator>
      <dc:date>2014-06-24T16:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count doesn't do it correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730705#M1085038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but if you analyse the data you will see that it's not true when you have both selected, 179A + 179B.&lt;/P&gt;&lt;P&gt;I've already tried with set analyses but the result was the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-doesn-t-do-it-correctly/m-p/730705#M1085038</guid>
      <dc:creator />
      <dc:date>2014-06-26T14:50:06Z</dc:date>
    </item>
  </channel>
</rss>

