<?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 Group by within an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318162#M579695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;draab,&lt;/P&gt;&lt;P&gt;Try using DISTINCT in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2012 16:45:54 GMT</pubDate>
    <dc:creator>onetwothree123</dc:creator>
    <dc:date>2012-02-24T16:45:54Z</dc:date>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318161#M579694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, there has to be an easy way to do this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set containing person name, company name, and company revenue.&amp;nbsp; Since there are multiple people per company, the company revenue figures are repeated several times.&amp;nbsp; I need a report showing number of people, number of companies, and total revenue.&amp;nbsp; How do I set this up in a pivot table to avoid the double counting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318161#M579694</guid>
      <dc:creator />
      <dc:date>2012-02-24T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318162#M579695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;draab,&lt;/P&gt;&lt;P&gt;Try using DISTINCT in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318162#M579695</guid>
      <dc:creator>onetwothree123</dc:creator>
      <dc:date>2012-02-24T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318163#M579696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know DISTINCT would work with the company names -- i.e., =count (distinct Company_Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's perfectly possible that there will be several companies reporting the same revenue, which I should think would cause problems.&amp;nbsp; Can you give an example of code that would work for the Revenue figures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318163#M579696</guid>
      <dc:creator />
      <dc:date>2012-02-24T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318164#M579697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you upload an example of your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318164#M579697</guid>
      <dc:creator />
      <dc:date>2012-02-24T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318165#M579698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Draab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have a revenue figure per person then if you include person as a dimension you will get the revenue repeated across that dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prehaps use comapny as the dimension, and then do a distinct count of people and a sum of revenue as expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318165#M579698</guid>
      <dc:creator />
      <dc:date>2012-02-24T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318166#M579699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( aggr(only(Revenue), Company))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 16:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318166#M579699</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-24T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Group by within an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318167#M579700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it.&amp;nbsp; Thanks much.&amp;nbsp; Never saw 'only' before, but I'm very rusty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 17:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-within-an-Expression/m-p/318167#M579700</guid>
      <dc:creator />
      <dc:date>2012-02-24T17:07:14Z</dc:date>
    </item>
  </channel>
</rss>

