<?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( all&amp;lt;...  together with calculated dimensions does not behave as I expect in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192343#M54026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This probably won't help, but I believe that the QlikView documentation indicates that they're moving away from using the "all" keyword. Instead, I believe it suggests using "{1} total". So you might try count({1} total ...) and see if it works. I doubt it will, but it can't hurt to try.&lt;/P&gt;&lt;P&gt;Another thing to try would be using CODE as the dimension, and putting the rest of the logic in your expression so that it returns null for anything &amp;lt;=1%. I'd think it would work the same, so I don't see how it would fix the problem, but again, might be worth a try.&lt;/P&gt;&lt;P&gt;Other than that, I'm not sure what to suggest. What you have looks right to me.&lt;/P&gt;&lt;P&gt;Wait, maybe it's the aggregation. Perhaps you need to aggregate by SO_VKORG as well?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(aggr(Count(SO_P_VBELN)/count(all&amp;lt;SO_VKORG&amp;gt;SO_P_VBELN),SO_VKORG,CODE)&amp;gt;0.01,CODE)&lt;/P&gt;&lt;P&gt;Not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Dec 2009 05:55:27 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-12-19T05:55:27Z</dc:date>
    <item>
      <title>Count( all&lt;...  together with calculated dimensions does not behave as I expect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192342#M54025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All records in my database contain a field CODE. And each record belong to a sales Organization (SO_VKORG). I would like to show a table where I see the top CODES (in percentage of their share in one sales organization). Top CODES are all above a share of e.g. 1% (0.01).&lt;/P&gt;&lt;P&gt;SO_VKORG1&lt;/P&gt;&lt;P&gt;CODE1 30%&lt;/P&gt;&lt;P&gt;CODE2 10%&lt;/P&gt;&lt;P&gt;SO_VKORG2&lt;/P&gt;&lt;P&gt;CODE 3 40%&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;In a table chart I use a normal and a calculated dimension:&lt;/P&gt;&lt;P&gt;=SO_VKORG&lt;/P&gt;&lt;P&gt;=if(aggr(Count(SO_P_VBELN)/count(all&amp;lt;SO_VKORG&amp;gt;SO_P_VBELN),CODE)&amp;gt;0.01,CODE)&lt;/P&gt;&lt;P&gt;in the expression, I want to count the current selection and all lines in the database for a particular VKORG&lt;/P&gt;&lt;P&gt;=Count(SO_P_VBELN) / count(all &amp;lt;SO_VKORG&amp;gt; SO_P_VBELN)&lt;/P&gt;&lt;P&gt;unfortunately, the count all does only count the amount of records which are displayed, not all records of the database. If I increase or decrease the percentage to be displayed, the number of lines displayed (which is correect) and the total amount of counted records change (which is not correct). This leads to wrong results..&lt;/P&gt;&lt;P&gt;I use QV 9 Personal edition.&lt;/P&gt;&lt;P&gt;What is my mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 06:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192342#M54025</guid>
      <dc:creator />
      <dc:date>2009-12-18T06:08:56Z</dc:date>
    </item>
    <item>
      <title>Count( all&lt;...  together with calculated dimensions does not behave as I expect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192343#M54026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This probably won't help, but I believe that the QlikView documentation indicates that they're moving away from using the "all" keyword. Instead, I believe it suggests using "{1} total". So you might try count({1} total ...) and see if it works. I doubt it will, but it can't hurt to try.&lt;/P&gt;&lt;P&gt;Another thing to try would be using CODE as the dimension, and putting the rest of the logic in your expression so that it returns null for anything &amp;lt;=1%. I'd think it would work the same, so I don't see how it would fix the problem, but again, might be worth a try.&lt;/P&gt;&lt;P&gt;Other than that, I'm not sure what to suggest. What you have looks right to me.&lt;/P&gt;&lt;P&gt;Wait, maybe it's the aggregation. Perhaps you need to aggregate by SO_VKORG as well?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(aggr(Count(SO_P_VBELN)/count(all&amp;lt;SO_VKORG&amp;gt;SO_P_VBELN),SO_VKORG,CODE)&amp;gt;0.01,CODE)&lt;/P&gt;&lt;P&gt;Not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2009 05:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192343#M54026</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-19T05:55:27Z</dc:date>
    </item>
    <item>
      <title>Count( all&lt;...  together with calculated dimensions does not behave as I expect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192344#M54027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear John&lt;/P&gt;&lt;P&gt;thank you for your response. Unfortunately, your proposal does not help. If I implement it, I get 100% for all aggragations. I think, the problem is more on the expressions, not on the dimensions side. I tried the new notation count({1} total ...) instead of all, but with the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 15:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192344#M54027</guid>
      <dc:creator />
      <dc:date>2009-12-22T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Count( all&lt;...  together with calculated dimensions does not behave as I expect</title>
      <link>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192345#M54028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to post a small example with inline loads that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 00:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-all-lt-together-with-calculated-dimensions-does-not-behave/m-p/192345#M54028</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-23T00:25:12Z</dc:date>
    </item>
  </channel>
</rss>

