<?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: Max/Min with aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296569#M404643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you write some thing like below. Does this expression gives output to you?&lt;/P&gt;&lt;P&gt;Num(aggr(Sum([Loss Paid Filter])/sum([Written Premium Filter]),LOB,product),'#,##0.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you able to provide snapshot for that data atleast 10 rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 05:42:33 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-06-29T05:42:33Z</dc:date>
    <item>
      <title>Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296568#M404642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below expression -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Max(aggr(Sum([Loss Paid Filter])/sum([Written Premium Filter]),LOB,product)),'#,##0.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using max function but it is giving me min value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and with min expression it is giving zero. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the correct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if further details required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 05:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296568#M404642</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T05:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296569#M404643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you write some thing like below. Does this expression gives output to you?&lt;/P&gt;&lt;P&gt;Num(aggr(Sum([Loss Paid Filter])/sum([Written Premium Filter]),LOB,product),'#,##0.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you able to provide snapshot for that data atleast 10 rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 05:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296569#M404643</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-29T05:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296570#M404644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Neha!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting case and it seems like you have your "max(aggr(" case on negative values so "max" is returning the min value, and a "true" max is zero. Maybe there are some format restrictions in the chart (on Number tab) where your format-condition &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'#,##0.00%'&lt;/SPAN&gt; doesn't make a sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 06:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296570#M404644</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-06-29T06:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296571#M404645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I observed that this expression is not considering full records. See&amp;nbsp; the image. This table is having expression without aggr. My aggr expression is not considering 2017 Q1 records. I need to modify it. &lt;/P&gt;&lt;P&gt;Any suggestions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168519_table.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296571#M404645</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T07:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296572#M404646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to display this expression in text box so i have to use Num formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296572#M404646</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296573#M404647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is Expression in Your table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296573#M404647</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-29T07:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296574#M404648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum([Loss Paid Filter])/sum([Written Premium Filter])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296574#M404648</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T08:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296575#M404649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have You tried to add Quarter in Aggr(.......,Quarter) expression ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296575#M404649</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-29T08:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296576#M404650</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;With &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Num(aggr(Sum([Loss Paid Filter])/sum([Written Premium Filter]),LOB,product),'#,##0.00%') this expression output is -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;LOB&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;product&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Quarter&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Loss Ratio&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;LOB1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;P1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;Q1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;&lt;P&gt;1.40%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum([Loss Paid Filter])/sum([Written Premium Filter]) this expression output is -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;LOB&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Product&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Quarter&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;2017Q1 &lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;2017Q2 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;LOB1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;208.76%&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;1.40%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically with aggr function&amp;nbsp; results display is wrong. For Q2 value is missing and Q1 has value that is actually for q2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused with the results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296576#M404650</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T08:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296577#M404651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah thanks for reminding, I missed quarter in&amp;nbsp; aggr expression. But the issue still exist with min aggr. Max aggr is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max Aggr Expression - &lt;/P&gt;&lt;P&gt;Num(Max(aggr(Sum([Loss Paid Filter])/sum([Written Premium Filter]),LOB,product,YearQuarter)),'#,##0.00%')&lt;/P&gt;&lt;P&gt;This is giving me correct result - 208.76%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min Aggr Expression -&lt;/P&gt;&lt;P&gt;Num(Min(aggr(Sum([Loss Paid Filter])/sum([Written Premium Filter]),LOB,product,YearQuarter)),'#,##0.00%')&lt;/P&gt;&lt;P&gt;For this output is 0.00% ,&amp;nbsp; actually it should give 1.40%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296577#M404651</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T08:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296578#M404652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because probably You have any Sum(Loss Paid Filter) = 0.&lt;/P&gt;&lt;P&gt;Try to exclude this value&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Loss Paid Filter]-={0}&amp;gt;} [Loss Paid Filter])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 08:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296578#M404652</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-29T08:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Max/Min with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296579#M404653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for response and help. Expressions are working fine. Its just that we have zero and that why min aggr always give 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 11:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Min-with-aggr-function/m-p/1296579#M404653</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-06-29T11:48:19Z</dc:date>
    </item>
  </channel>
</rss>

