<?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 with Max problem - finding the highest different. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043857#M351079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a small qlikview document with some example data and a table with the results you expect. An excel file with source data and a result table are ok too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 11:52:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-22T11:52:00Z</dc:date>
    <item>
      <title>Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043853#M351075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all ,&lt;/P&gt;&lt;P&gt;i have an expresion :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;}&amp;nbsp; wanted_num )&amp;nbsp; ,ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; -&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} current_num )&amp;nbsp; ,&lt;SPAN style="font-size: 13.3333px;"&gt;ID &lt;/SPAN&gt; )&amp;nbsp; )&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;shortly - i need to find the sums diff between &lt;SPAN style="font-size: 13.3333px;"&gt;wanted_num and &lt;SPAN style="font-size: 13.3333px;"&gt;current_num for each ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Its OK , but i need also to find the max result of the highest ID , so i use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&amp;nbsp; aggr ( max &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;}&amp;nbsp; wanted_num )&amp;nbsp; ,ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; -&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} current_num&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp; ,&lt;SPAN style="font-size: 13.3333px;"&gt;ID&amp;nbsp; &lt;/SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; ,&lt;/P&gt;&lt;P&gt;NEED YOUR HELP , THANKS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043853#M351075</guid>
      <dc:creator>yanivvl0</dc:creator>
      <dc:date>2016-03-22T09:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043854#M351076</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;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;Subject = {1}&amp;gt;} wanted_num, -ID) - &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;Subject = {1}&amp;gt;} current_num, -ID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043854#M351076</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-22T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043855#M351077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you are trying to achieve, could you explain with some sample lines of records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;}&amp;nbsp; wanted_num )&amp;nbsp; ,ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; -&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} current_num )&amp;nbsp; ,&lt;SPAN style="font-size: 13.3333px;"&gt;ID &lt;/SPAN&gt; )&amp;nbsp; )&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;does not 'sums diff between &lt;SPAN style="font-size: 13.3333px;"&gt;wanted_num and &lt;SPAN style="font-size: 13.3333px;"&gt;current_num for each ID', it calculates the difference between the &lt;/SPAN&gt;&lt;/SPAN&gt;sums across each id. Which makes a difference, IMHO... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043855#M351077</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T10:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043856#M351078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;FirstSortedValue&lt;/STRONG&gt; (&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;}&amp;nbsp; wanted_num )&amp;nbsp; ,ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; -&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} current_num )&amp;nbsp; ,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ID &lt;/SPAN&gt;)&amp;nbsp; ) ,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;- aggr(sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;}&amp;nbsp; wanted_num )&amp;nbsp; ,ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; -&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} current_num )&amp;nbsp; ,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ID )&lt;/SPAN&gt;) ,ID ) )&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043856#M351078</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-22T10:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043857#M351079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a small qlikview document with some example data and a table with the results you expect. An excel file with source data and a result table are ok too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 11:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043857#M351079</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-22T11:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043858#M351080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;HI Gysbert ( and all the rest minds ) ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;You're right, we should see a concrete example, I have attached a document.&amp;nbsp; the idea is to paint the DIFF column in shades of green, in relative to the that value appears.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So if the formula &lt;STRONG&gt;= sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} (WANTED_NUM-CURRENT_NUM) )&amp;nbsp; , ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i am using variable&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;vColorDiff&lt;/SPAN&gt; &lt;STRONG&gt;= 255 / max ( sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} (WANTED_NUM-CURRENT_NUM) )&amp;nbsp; , ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp; ) &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and&amp;nbsp; in the background color&amp;nbsp; &lt;STRONG&gt;= argb (&amp;nbsp;&amp;nbsp;&amp;nbsp; sum (&amp;nbsp; aggr (&amp;nbsp; max&amp;nbsp; (&amp;nbsp; {$&amp;lt;Subject={1}&amp;gt;} (WANTED_NUM-CURRENT_NUM) )&amp;nbsp; , ID&amp;nbsp; )&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * vColorDiff&amp;nbsp; , 0 , 140 , 0&amp;nbsp; )&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -So a high value will be dark&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;the problem is that&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;vColorDiff&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; expression is error ..&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;THANKS.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043858#M351080</guid>
      <dc:creator>yanivvl0</dc:creator>
      <dc:date>2016-03-23T08:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043859#M351081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were nesting aggregation functions without an aggr. You could also try using the ColorMix wizard. See attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043859#M351081</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-23T08:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043860#M351082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great solution !!&amp;nbsp;&amp;nbsp;&amp;nbsp; you are making a big help , thanks!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043860#M351082</guid>
      <dc:creator>yanivvl0</dc:creator>
      <dc:date>2016-03-23T09:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043861#M351083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , i try to use it - but something is wrong , any way i got help from the great Gysbert&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043861#M351083</guid>
      <dc:creator>yanivvl0</dc:creator>
      <dc:date>2016-03-23T09:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043862#M351084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi its not good , i think i didnt make the question clear , &lt;SPAN style="font-size: 13.3333px;"&gt;hi , i try to use it - but something is wrong , any way i got help from the great Gysbert&lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043862#M351084</guid>
      <dc:creator>yanivvl0</dc:creator>
      <dc:date>2016-03-23T09:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Max problem - finding the highest different.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043863#M351085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, I saw that below. I am glad you got what you were looking for &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Max-problem-finding-the-highest-different/m-p/1043863#M351085</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T09:46:28Z</dc:date>
    </item>
  </channel>
</rss>

