<?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 URGENT : Problem with dimension - Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203565#M503240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dimension Group (group of products) and I have a target on each group. Let's say for the group1 the target is 100.&lt;/P&gt;&lt;P&gt;It means that customer should by 100 products of group1. I need to display the number of customers who reach this target&lt;/P&gt;&lt;P&gt;I use a pivot table with the dimension Group and an expression:&lt;/P&gt;&lt;P&gt;Count(distinct aggr(if ( sum(Qty)&amp;gt;Target, Customer),Customer))&lt;/P&gt;&lt;P&gt;It give me result but below what I expect but if I select one of the group I get the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group1 4&lt;/P&gt;&lt;P&gt;Group2 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I select Group1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group1 36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why I got a different result when I select one of the group ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Jun 2010 07:37:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-27T07:37:32Z</dc:date>
    <item>
      <title>URGENT : Problem with dimension - Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203565#M503240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dimension Group (group of products) and I have a target on each group. Let's say for the group1 the target is 100.&lt;/P&gt;&lt;P&gt;It means that customer should by 100 products of group1. I need to display the number of customers who reach this target&lt;/P&gt;&lt;P&gt;I use a pivot table with the dimension Group and an expression:&lt;/P&gt;&lt;P&gt;Count(distinct aggr(if ( sum(Qty)&amp;gt;Target, Customer),Customer))&lt;/P&gt;&lt;P&gt;It give me result but below what I expect but if I select one of the group I get the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group1 4&lt;/P&gt;&lt;P&gt;Group2 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I select Group1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group1 36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why I got a different result when I select one of the group ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 07:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203565#M503240</guid>
      <dc:creator />
      <dc:date>2010-06-27T07:37:32Z</dc:date>
    </item>
    <item>
      <title>URGENT : Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203566#M503241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;Count(distinct aggr(if ( sum(Qty)&amp;gt;Target, Customer, &lt;B&gt;Group&lt;/B&gt;),Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 09:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203566#M503241</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-06-27T09:46:23Z</dc:date>
    </item>
    <item>
      <title>URGENT : Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203567#M503242</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;Count(distinct aggr(if ( sum(Qty)&amp;gt;=Target, Customer, &lt;B&gt;Group&lt;/B&gt;),Customer))&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ABDALLA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 10:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203567#M503242</guid>
      <dc:creator />
      <dc:date>2010-06-27T10:04:45Z</dc:date>
    </item>
    <item>
      <title>URGENT : Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203568#M503244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but I got the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 11:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203568#M503244</guid>
      <dc:creator />
      <dc:date>2010-06-27T11:21:19Z</dc:date>
    </item>
    <item>
      <title>URGENT : Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203569#M503250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly QV is having trouble evaluating the Target in your function, but I'm not really sure - without a sample it's hard to tell or try different functions to see if any of them work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 11:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203569#M503250</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-06-27T11:54:49Z</dc:date>
    </item>
    <item>
      <title>URGENT : Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203570#M503252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put a number instead of Target. But I got the same result. Any other Idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 12:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203570#M503252</guid>
      <dc:creator />
      <dc:date>2010-06-27T12:52:45Z</dc:date>
    </item>
    <item>
      <title>URGENT : Problem with dimension</title>
      <link>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203571#M503253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally found the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if( aggr(sum(Qty),Group,Customer)&amp;gt;=Target,1,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 16:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/URGENT-Problem-with-dimension-Aggr/m-p/203571#M503253</guid>
      <dc:creator />
      <dc:date>2010-06-27T16:42:34Z</dc:date>
    </item>
  </channel>
</rss>

