<?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: Sum values based on a count in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428298#M484430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(aggr(count({$&amp;lt;data={'value a', 'value b'}&amp;gt;}profile.id), MyChartDimension1, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MyChartDimension&lt;/SPAN&gt;2, ... etc ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Replace MyChartDimension1, MyChartDimension2, ... etc with the names of the dimensions in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that isn't what you need, see &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2380"&gt;here&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2013 10:39:19 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-05-31T10:39:19Z</dc:date>
    <item>
      <title>Sum values based on a count in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428297#M484429</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;With the following expression I simply count values based on some string values of the dimension data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;data={'value a', 'value b'}&amp;gt;}profile.id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to sum these two values in this expression and not through the 'expressions - Full Accummulation', or the 'Total Mode - sum of rows'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it with rangesum and aggr, but with no success. Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 10:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428297#M484429</guid>
      <dc:creator />
      <dc:date>2013-05-31T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values based on a count in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428298#M484430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(aggr(count({$&amp;lt;data={'value a', 'value b'}&amp;gt;}profile.id), MyChartDimension1, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MyChartDimension&lt;/SPAN&gt;2, ... etc ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Replace MyChartDimension1, MyChartDimension2, ... etc with the names of the dimensions in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that isn't what you need, see &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2380"&gt;here&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 10:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428298#M484430</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-31T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values based on a count in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428299#M484431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I had tried this expression before too, but I forgot to remove the dimension data, so I always got two results and no accumulation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 11:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428299#M484431</guid>
      <dc:creator />
      <dc:date>2013-05-31T11:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values based on a count in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428300#M484432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find this discussion helpful and I seem to have a similar problem. Basically I need to find the SUM of all employees in a company that has offices in different countried. A country is represented by Country ID and each employee has an employee ID. I need to count all employees in each country and sum up all employees. here is my equition that is giving me an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='No. of Emp = ' &amp;amp;count({&amp;lt; [Country ID] = {'CI-005'} &amp;gt;}&amp;nbsp; distinct [Emp ID]),&amp;nbsp; count({&amp;lt; [Country ID] = {'CI-008'} &amp;gt;}&amp;nbsp; distinct [Emp ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone here help to tell me whats wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 11:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-values-based-on-a-count-in-an-expression/m-p/428300#M484432</guid>
      <dc:creator />
      <dc:date>2015-11-11T11:04:22Z</dc:date>
    </item>
  </channel>
</rss>

