<?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 Incorrect Minimum Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775732#M275010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this scenario I have a table of many entries for a given entity (Brokers) with an associated value (Discount %). I am calculating the total Discount % for each Broker and want to find the min, max, and average of all Broker entities. Max and average appear to work but the minimum value always shows 0.0% which is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80356" alt="Min Question.png" class="image-1 jive-image" src="/legacyfs/online/80356_Min Question.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2015 13:58:00 GMT</pubDate>
    <dc:creator>ebc</dc:creator>
    <dc:date>2015-03-10T13:58:00Z</dc:date>
    <item>
      <title>Incorrect Minimum Value</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775732#M275010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this scenario I have a table of many entries for a given entity (Brokers) with an associated value (Discount %). I am calculating the total Discount % for each Broker and want to find the min, max, and average of all Broker entities. Max and average appear to work but the minimum value always shows 0.0% which is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80356" alt="Min Question.png" class="image-1 jive-image" src="/legacyfs/online/80356_Min Question.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 13:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775732#M275010</guid>
      <dc:creator>ebc</dc:creator>
      <dc:date>2015-03-10T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Minimum Value</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775733#M275011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num(min(aggr(IF($(vDiscount)&amp;gt;0,$(vDiscount)),Broker)),'#0.0%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 14:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775733#M275011</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-10T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Minimum Value</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775734#M275012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the individual records, actually the result is 0, but hidden in the view.&lt;/P&gt;&lt;P&gt;Your variable "vDiscount" consists out of the fllwg formula (select 5%Mileage):&lt;/P&gt;&lt;P&gt;$(vCalc5LowMileage) /&amp;nbsp; sum(counter).&lt;/P&gt;&lt;P&gt;The denominator has always a value, but the result of your variable "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vCalc5LowMileage" is often "0", thus the resulting calculation is also "0" and the minimum value over all records is "0" as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So suggest to modify your expressions/variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: check a formula like &lt;/P&gt;&lt;P&gt;=num(IF($(vDiscount) &amp;lt;&amp;gt; 0, $(vDiscount)),'#0.0%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 14:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775734#M275012</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-10T14:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Minimum Value</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775735#M275013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is interesting. Is the following a correct statement then?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Despite using the min function outside of the aggr function (as I do in the Text KPI object) the evaluation of minimum value actually interprets the calculation of every denominator (despite the conditional IF logic and the aggregated result).&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(&lt;STRONG&gt;min(&lt;/STRONG&gt;aggr($(vDiscount),Broker)&lt;STRONG&gt;)&lt;/STRONG&gt;,'#0.0%')&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vDiscount = IF(condition, sum(x)/&lt;STRONG&gt;&lt;EM&gt;sum(counter)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(condition2, sum(x2)/sum(counter) .....))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 15:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775735#M275013</guid>
      <dc:creator>ebc</dc:creator>
      <dc:date>2015-03-10T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Minimum Value</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775736#M275014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks as if the entire calculation is made, before the instruction "Suppress Zero-Values" in the Presentation-tab is evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the cracks will know it better, but find this phenomen quite interesting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 15:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-Minimum-Value/m-p/775736#M275014</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-03-10T15:16:14Z</dc:date>
    </item>
  </channel>
</rss>

