<?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: Aggr Max total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21152#M3497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;in detail what do this formula?&lt;/P&gt;&lt;P&gt;Count distinct of what?&lt;/P&gt;&lt;P&gt;Aggr for?&lt;/P&gt;&lt;P&gt;In the example works but not in real project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 12:57:47 GMT</pubDate>
    <dc:creator>demcug82</dc:creator>
    <dc:date>2018-02-28T12:57:47Z</dc:date>
    <item>
      <title>Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21146#M3491</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;i have a problem to calculate a KPI (text object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;-Product&lt;/P&gt;&lt;P&gt;-Version&lt;/P&gt;&lt;P&gt;-Exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate the total count of exception (all products) but only in the last version of every product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;Product 1 with version 1 (two exception), version 2 (one exception), version 3 (no exception)&lt;/P&gt;&lt;P&gt;Product 2 with version 1 (no exception), version 2( one exception), version 3 (one exception)&lt;/P&gt;&lt;P&gt;Product 3 with version 1(one exception), version 2( two exception)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final value should be = 3&amp;nbsp;&amp;nbsp; (1+2 of the product 2 and product 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Count(DISTINCT{1&amp;lt;[Version]={'$(=maxstring([Version]))'}&amp;gt;} Exception)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but works only if i select a product because calculate the count of exception of the last version of all product.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21146#M3491</guid>
      <dc:creator>demcug82</dc:creator>
      <dc:date>2018-02-27T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21147#M3492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Aggr function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Count(DISTINCT{1&amp;lt;[Version]={'$(=maxstring([Version]))'}&amp;gt;} Exception),Product))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21147#M3492</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2018-02-27T16:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21148#M3493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this - &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count(DISTINCT{1&amp;lt;[Version]={"=$(=Aggr(maxstring([Version]),Product))"}&amp;gt;} Exception)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21148#M3493</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-27T16:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21149#M3494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but no works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21149#M3494</guid>
      <dc:creator>demcug82</dc:creator>
      <dc:date>2018-02-27T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21150#M3495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here an example of application where the value correct should be 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21150#M3495</guid>
      <dc:creator>demcug82</dc:creator>
      <dc:date>2018-02-28T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21151#M3496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Aggr(If(Len(Trim(Exception)) &amp;gt; 0 and Version = MaxString(TOTAL &amp;lt;Product&amp;gt; Version), Exception), Product, Version))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 12:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21151#M3496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21152#M3497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;in detail what do this formula?&lt;/P&gt;&lt;P&gt;Count distinct of what?&lt;/P&gt;&lt;P&gt;Aggr for?&lt;/P&gt;&lt;P&gt;In the example works but not in real project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 12:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21152#M3497</guid>
      <dc:creator>demcug82</dc:creator>
      <dc:date>2018-02-28T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21153#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I am counting distinct Exception based on two conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Exception is not null or is not blank&lt;/P&gt;&lt;P&gt;2) Version is the maximum version per Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the two condition meets, count the Exception....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you don't need DISTINCT? Just this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(Aggr(If(Len(Trim(Exception)) &amp;gt; 0 and Version = MaxString(TOTAL &amp;lt;Product&amp;gt; Version), Exception), Product, Version))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not sure if you are getting a smaller number or larger number than expected? If it is smaller, then the above should help... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 13:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21153#M3498</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T13:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21154#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I get confused when to go with set expression and when with 'if', how do you decide which one to use in different situations? Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21154#M3499</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-28T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21155#M3500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the evaluation of if is for the whole chart, go with set analysis. If you have to evaluate if based on the chart's dimension, then set analysis won't work (except for few cases) and you will need if with Aggr(). In this case, the OP wanted MaxString per Product, so Set analysis won't work as set analysis will look at maxString(Version) across the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21155#M3500</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T14:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21156#M3501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny without distinct i'm passed from 5 to 53. &lt;/P&gt;&lt;P&gt;5 its' more small&amp;nbsp; but 53 too.&lt;/P&gt;&lt;P&gt;however when i select one product and last version the sum go to "Zero"&amp;nbsp; while i expect a value because there are exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21156#M3501</guid>
      <dc:creator>demcug82</dc:creator>
      <dc:date>2018-02-28T15:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Max total</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21157#M3502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which product have you selected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-total/m-p/21157#M3502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T15:52:35Z</dc:date>
    </item>
  </channel>
</rss>

