<?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: Aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475538#M177599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(SALES)/count(All&amp;nbsp; SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(SALES)/sum({1} count(SALES))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 06:25:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-22T06:25:23Z</dc:date>
    <item>
      <title>Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475535#M177596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when i'm using the aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the number of sales per store(DEALER_NAME):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sales_dealer.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49414_sales_dealer.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;i'm using the following expression : = count({1} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each store has salesman and I'm trying to get the participation of each salesman in their stores.&lt;/P&gt;&lt;P&gt;I'm using : =count(SALES)/sum(Aggr(NODISTINCT count({1}&amp;gt;} SALES),DEALER_NAME)&lt;/P&gt;&lt;P&gt;but for the store 4, I get some weird results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I put the following expression in a text object :&lt;/P&gt;&lt;P&gt;=SUM(Aggr(NODISTINCT count({1&amp;lt; DEALER_NAME =&amp;nbsp; {'Store 4'}&amp;gt;} SALES),DEALER_NAME))&lt;/P&gt;&lt;P&gt;and it gives me 62469 as a result and I don't understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has a clue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadjad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 21:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475535#M177596</guid>
      <dc:creator />
      <dc:date>2013-11-21T21:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475536#M177597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach sample data and file, it helps in understanding easily.&amp;nbsp; I think count(SALES) is enough to get the number of Sales per Dealer since dealer is used as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 03:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475536#M177597</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-22T03:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475537#M177598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadjad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the below expression helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(SALES)/count({1} total SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 05:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475537#M177598</guid>
      <dc:creator />
      <dc:date>2013-11-22T05:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475538#M177599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(SALES)/count(All&amp;nbsp; SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(SALES)/sum({1} count(SALES))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 06:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475538#M177599</guid>
      <dc:creator />
      <dc:date>2013-11-22T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475539#M177600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks guys but finally the problem was in the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 15:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/475539#M177600</guid>
      <dc:creator />
      <dc:date>2013-11-22T15:17:38Z</dc:date>
    </item>
  </channel>
</rss>

