<?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: QV 11 Dimension Limits with negative values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296636#M581041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this dimension: =if(Sales&amp;gt;0,Partener)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works as designed. If restriction condition is set to "Show only values that accumulate to xxx relative to the total", negative values are not included in the calculation of the total ("Restriction sum", that is the total that is used for evaluating the restriction for a particular row). The reason for this is the following:&lt;/P&gt;&lt;P&gt;Imagine the following case: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum for this field is 0, which is undefined when you do relative calculation. What is the 40% limit of the sum 0 in this case? And how many values should be displayed?&lt;/P&gt;&lt;P&gt;The way to handle these questions, that makes most sense is to discard the negative values before performing the restrictions. Doing so, The sum is 3 and the 40% limit is more intuitive (1.2). Thus the value 1 will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A good is advice is to avoid relative restrictions when there are negative values as this can lead to a behaviour that is difficult to forsee (even though it is well defined)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2013 11:14:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-22T11:14:56Z</dc:date>
    <item>
      <title>QV 11 Dimension Limits with negative values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296635#M581040</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;Please take a look at the attached file.&lt;/P&gt;&lt;P&gt;I use the Dimension Limits to illustrate Pareto principle, by something go wrong.&lt;/P&gt;&lt;P&gt; Why are also displayed the negative values?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;How can I avoid&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;displaying&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;negative&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;values?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 14:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296635#M581040</guid>
      <dc:creator>bilionut</dc:creator>
      <dc:date>2011-12-13T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: QV 11 Dimension Limits with negative values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296636#M581041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this dimension: =if(Sales&amp;gt;0,Partener)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works as designed. If restriction condition is set to "Show only values that accumulate to xxx relative to the total", negative values are not included in the calculation of the total ("Restriction sum", that is the total that is used for evaluating the restriction for a particular row). The reason for this is the following:&lt;/P&gt;&lt;P&gt;Imagine the following case: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum for this field is 0, which is undefined when you do relative calculation. What is the 40% limit of the sum 0 in this case? And how many values should be displayed?&lt;/P&gt;&lt;P&gt;The way to handle these questions, that makes most sense is to discard the negative values before performing the restrictions. Doing so, The sum is 3 and the 40% limit is more intuitive (1.2). Thus the value 1 will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A good is advice is to avoid relative restrictions when there are negative values as this can lead to a behaviour that is difficult to forsee (even though it is well defined)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 11:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296636#M581041</guid>
      <dc:creator />
      <dc:date>2013-03-22T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: QV 11 Dimension Limits with negative values</title>
      <link>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296637#M581042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bili,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the attached QVW file... Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-11-Dimension-Limits-with-negative-values/m-p/296637#M581042</guid>
      <dc:creator />
      <dc:date>2013-03-22T14:55:26Z</dc:date>
    </item>
  </channel>
</rss>

