<?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: calculating the maximal value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851615#M1009235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I do this, I get different results:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Reach1 = aggr(my_expression, Position)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reach2 = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;my_expression&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reach1 doesn't equal Reach2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;My expression is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;[Пол/Возраст] = p([ца_Пол/Возраст]), Доход = p(ца_Доход), Занятость = p(ца_Занятость), &lt;/P&gt;&lt;P&gt;&amp;nbsp; Образование = p(ца_Образование), [Социальный статус] = p([ца_Социальный статус]), &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Население города] = p([ца_Население города])&amp;gt;} &lt;/P&gt;&lt;P&gt;weight*DaysQty)/$(vPeriod))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 14:43:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-29T14:43:35Z</dc:date>
    <item>
      <title>calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851610#M1009230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a straight table in my application.&lt;/P&gt;&lt;P&gt;It has a dimention = Position&lt;/P&gt;&lt;P&gt;It has an expression which is defined by a variable = $(Reach)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task is to calculate the maximal Reach in this straight table.&lt;/P&gt;&lt;P&gt;I try to calculate it in a separate text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm trying the following expression:&lt;/P&gt;&lt;P&gt;=max(aggr($(Reach), &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Position&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work. The result is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise how I can calculate the maximal Reach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851610#M1009230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851611#M1009231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression that you are using for your variable??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851611#M1009231</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-29T14:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851612#M1009232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first attempt with the aggr function looks OK.&lt;/P&gt;&lt;P&gt;Some more info would be useful though! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851612#M1009232</guid>
      <dc:creator>Agis-Kalogiannis</dc:creator>
      <dc:date>2015-04-29T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851613#M1009233</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;you should add Aggr function in your variable directly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( your_expression, Position)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in the text object: =max($(Reach))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851613#M1009233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851614#M1009234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what kind of information does you variable has ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have tried with the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max($(Reach)), aggr has a performance toll so if you can avoid using it &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851614#M1009234</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-29T14:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851615#M1009235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I do this, I get different results:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Reach1 = aggr(my_expression, Position)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reach2 = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;my_expression&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Reach1 doesn't equal Reach2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;My expression is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;[Пол/Возраст] = p([ца_Пол/Возраст]), Доход = p(ца_Доход), Занятость = p(ца_Занятость), &lt;/P&gt;&lt;P&gt;&amp;nbsp; Образование = p(ца_Образование), [Социальный статус] = p([ца_Социальный статус]), &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Население города] = p([ца_Население города])&amp;gt;} &lt;/P&gt;&lt;P&gt;weight*DaysQty)/$(vPeriod))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851615#M1009235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851616#M1009236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;My expression is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(sum({&amp;lt;[Пол/Возраст] = p([ца_Пол/Возраст]), Доход = p(ца_Доход), Занятость = p(ца_Занятость), &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Образование = p(ца_Образование), [Социальный статус] = p([ца_Социальный статус]), &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; [Население города] = p([ца_Население города])&amp;gt;} &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;weight*DaysQty)/$(vPeriod))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851616#M1009236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851617#M1009237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I try =max($(Reach)) either directly in a straight table or in a separate text box, I get -.&lt;/P&gt;&lt;P&gt;It isn't calculated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851617#M1009237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T14:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851618#M1009238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I tryed with an expression that doesn't contain a variable (while there is one in yours) and it works...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think, even in vPeriod you have to insert the aggr...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851618#M1009238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851619#M1009239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original attempt looks correct, I tried with the "sample" script, attached.&lt;/P&gt;&lt;P&gt;Do you get any result in a text box that contains just&lt;/P&gt;&lt;P&gt;$(Reach)&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851619#M1009239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T15:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the maximal value</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851620#M1009240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, everyone, for your answers! It was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found out that Max value was calculated correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was expression in my straignt table which gave a wrong result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the expression in my straight table as Elena suggested:&lt;/P&gt;&lt;P&gt;previous: $(Reach)&lt;/P&gt;&lt;P&gt;new: aggr(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(Reach), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Position)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 17:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-the-maximal-value/m-p/851620#M1009240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T17:30:43Z</dc:date>
    </item>
  </channel>
</rss>

