<?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: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588580#M443364</link>
    <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Min({&amp;lt;Sales_MonthSEQ = {"&amp;gt;-25&amp;lt;0"}&amp;gt;}
  Aggr(
    Count({&amp;lt;Sales_MonthSEQ = {"&amp;gt;-25&amp;lt;0"}&amp;gt;} DISTINCT OrderNo)
  , Sales_MonthName)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 13:58:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-06-05T13:58:28Z</dc:date>
    <item>
      <title>Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588349#M443353</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I've got an aggr function that should return the maximum and minimum number of order managed per month for the last 24 months.&lt;/P&gt;&lt;P&gt;The max works fine (19510) but the minimum returns 0, see example below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="min_aggr.png" style="width: 907px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13186iBA54EE09CDA3909D/image-size/large?v=v2&amp;amp;px=999" role="button" title="min_aggr.png" alt="min_aggr.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm getting gray hair over this so please any suggestions will help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robert V.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 20:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588349#M443353</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-04T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588402#M443356</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;first thing to check is that in your table properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;under presentation tab you uncheck the option suppress zero values&amp;nbsp;&lt;/P&gt;&lt;P&gt;usually i'll assume you have some values that are assigned to null month , so you don't see it in the table&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 05:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588402#M443356</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-06-05T05:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588578#M443363</link>
      <description>&lt;P&gt;Hi Lironbaram,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's the first thing I've looked and that's why I've place a picture of my table along with my request, option is already unchecked and I've got 24 results (24 months rolling). that's why I've having gray hair over this.&lt;/P&gt;&lt;P&gt;Thanks anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 12:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588578#M443363</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-05T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588580#M443364</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Min({&amp;lt;Sales_MonthSEQ = {"&amp;gt;-25&amp;lt;0"}&amp;gt;}
  Aggr(
    Count({&amp;lt;Sales_MonthSEQ = {"&amp;gt;-25&amp;lt;0"}&amp;gt;} DISTINCT OrderNo)
  , Sales_MonthName)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588580#M443364</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-05T13:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588609#M443368</link>
      <description>&lt;P&gt;No results, &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588609#M443368</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-05T13:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588612#M443369</link>
      <description>&lt;P&gt;Not even showing a 0? Any error messages? Can you show an image of the expression in the expression editor?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588612#M443369</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-05T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588616#M443370</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="min_aggr.png" style="width: 449px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13237iA8D5E8D138F8D603/image-size/large?v=v2&amp;amp;px=999" role="button" title="min_aggr.png" alt="min_aggr.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588616#M443370</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-05T13:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588622#M443371</link>
      <description>&lt;P&gt;This looks like the original expression you had which was showing 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 737px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13238i5938CD776833DF12/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Did you try my suggestion?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Min({&amp;lt;Sales_MonthSEQ = {"&amp;gt;-25&amp;lt;0"}&amp;gt;}
  Aggr(
    Count({&amp;lt;Sales_MonthSEQ = {"&amp;gt;-25&amp;lt;0"}&amp;gt;} DISTINCT OrderNo)
  , Sales_MonthName)
)&lt;/LI-CODE&gt;&lt;P&gt;Please note that I had a typo on Sales_MonthName field... I have fixed it now... I initially used Sales_Month&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/FONT&gt;ame... with a lower case &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588622#M443371</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-05T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588629#M443372</link>
      <description>I've just corrected your typo and it works !!!!&lt;BR /&gt;Thanks I really appreciate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588629#M443372</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-05T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588635#M443373</link>
      <description>Now if I may ask WHY do I need the extra set analysis before the aggr for the min function and not for the max?</description>
      <pubDate>Wed, 05 Jun 2019 14:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588635#M443373</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-05T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588691#M443383</link>
      <description>&lt;P&gt;Inner set analysis force the expression to be 0 for Months which are not displayed... hence Min will pick it... but Max will not pick unless all other values are less than 0. Does that make sense?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588691#M443383</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-05T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588732#M443387</link>
      <description>Honestly no but that's something I'll have to live with.&lt;BR /&gt;I've always believed that aggr was creating an inner table for the min function with 24 rows (months) of values not equal to zero. I've never considered that the billion years not selected would be set to zero and worst would be picked.&lt;BR /&gt;I'm just glad that I've learned something new today.&lt;BR /&gt;Thanks again for your time and your explication.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert V.&lt;BR /&gt;Thanks again for your time and your expl</description>
      <pubDate>Wed, 05 Jun 2019 18:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588732#M443387</guid>
      <dc:creator>rviel_dubo</dc:creator>
      <dc:date>2019-06-05T18:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MIN value from an AGGR expression return a 0 when no value are equal to zero</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588737#M443388</link>
      <description>&lt;P&gt;I guess you understood what it is doing, but not why... Aggr is doing that, but the thing to understand here is that in your virtual table... the expression is constrained to the last 24 months, but not the Dimension... Although you see this&lt;/P&gt;&lt;P&gt;Jun 2017 - 16765&lt;BR /&gt;Jul 2017 - 13482&lt;BR /&gt;...&lt;BR /&gt;and so on&lt;/P&gt;&lt;P&gt;But truly the chart is&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;Apr 2017 - 0&lt;BR /&gt;May 2017 - 0&lt;BR /&gt;June 2017 - 16765&lt;BR /&gt;Jul 2017 -&amp;nbsp;13482&lt;BR /&gt;...&lt;BR /&gt;and so on&lt;/P&gt;&lt;P&gt;I think you can view this by unchecking 'Suppress When Zero' on the presentation tab of the chart properties.... and because when you don't constraint your outer set analysis to the months that you are viewing... you see 0 as Min.&lt;/P&gt;&lt;P&gt;In general it is always good to use the same inner set analysis to the outer set analysis.... there might be times when you would not want to do it, but in my experience... I have never had that situation needed for my own development, but have seen it when helping others.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-MIN-value-from-an-AGGR-expression-return-a-0-when-no/m-p/1588737#M443388</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-05T18:58:23Z</dc:date>
    </item>
  </channel>
</rss>

