<?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. :Problem with simple totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232338#M83968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me what I want !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never used the "nodistinct" keyword. Even if I read the QV manual, I don't really understand what it does...&lt;/P&gt;&lt;P&gt;Could you please explain me what it does ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 15:13:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-05T15:13:14Z</dc:date>
    <item>
      <title>Problem with simple totals</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232336#M83966</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;I have a problem when I want to compute totals in my graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have the following hierachy :&lt;/P&gt;&lt;P&gt;World --&amp;gt; Continent --&amp;gt; Country --&amp;gt; City --&amp;gt; Vendor&lt;/P&gt;&lt;P&gt;and "value".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display a chart with the sum of "value", and the total by vendor.&lt;/P&gt;&lt;P&gt;I make a column "&lt;IMG src="file:/C:/DOCUME~1/NICOLA~1.MAR/LOCALS~1/Temp/moz-screenshot-4.png" /&gt;=sum(Value)" and another "=sum(total &amp;lt;Vendor&amp;gt; Value)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me this :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1565_sourceID:1565" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice that my totals are OK.&lt;/P&gt;&lt;P&gt;"Ted" have a total of 15 and "Bob" have a total of 123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, when I collapse a dimension, my total becomes wrong !&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1566_sourceID:1566" /&gt;&lt;/P&gt;&lt;P&gt;"Ted" have a total of 10 and "Bob" have a total of 102.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do to have the correct value (123 for Bob) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried "=aggr(sum(Value), Vendor)" but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232336#M83966</guid>
      <dc:creator />
      <dc:date>2010-05-05T13:14:47Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem with simple totals</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232337#M83967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=rangesum(aggr(NODISTINCT sum(Value),Vendor))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232337#M83967</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T13:51:07Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem with simple totals</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232338#M83968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me what I want !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never used the "nodistinct" keyword. Even if I read the QV manual, I don't really understand what it does...&lt;/P&gt;&lt;P&gt;Could you please explain me what it does ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 15:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232338#M83968</guid>
      <dc:creator />
      <dc:date>2010-05-05T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Problem with simple totals</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232339#M83969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The qualifier NODISTINCT allows to calculate the aggregate even if the dimension returns several values.&lt;/P&gt;&lt;P&gt;So when you collapse a dimension, your aggregate return more than one value. That's why I used NODISTINCT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 15:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232339#M83969</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Problem with simple totals</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232340#M83970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why collapsing a dimension changes the behaviour of the "sum" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 17:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232340#M83970</guid>
      <dc:creator />
      <dc:date>2010-05-05T17:11:28Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem with simple totals</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232341#M83971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you collapse a dimension and have several vendors, you can't show the value of only one vendor.&lt;/P&gt;&lt;P&gt;To counter that, you can do this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;if(Count(Distinct Vendor)&amp;gt;1,&lt;BR /&gt; 'Several vendors : No value',&lt;BR /&gt; rangesum(aggr(NODISTINCT sum(Value),Vendor)))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;if(Count(Distinct Vendor)&amp;gt;1,&lt;BR /&gt; sum(Value),&lt;BR /&gt; rangesum(aggr(NODISTINCT sum(Value),Vendor)))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;but take care with this option, it's may be complicated for the end user.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-simple-totals/m-p/232341#M83971</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-05T20:08:11Z</dc:date>
    </item>
  </channel>
</rss>

