<?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 second max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264645#M99502</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;Do i have to sort my tables in order to get the second next highest date for example? or is it another way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 11:52:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-15T11:52:42Z</dc:date>
    <item>
      <title>second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264645#M99502</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;Do i have to sort my tables in order to get the second next highest date for example? or is it another way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 11:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264645#M99502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-15T11:52:42Z</dc:date>
    </item>
    <item>
      <title>second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264646#M99503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you want highlight that you can use some one of the "rank" function in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264646#M99503</guid>
      <dc:creator />
      <dc:date>2011-09-15T12:11:49Z</dc:date>
    </item>
    <item>
      <title>second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264647#M99504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; max(filedname,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264647#M99504</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-15T12:13:22Z</dc:date>
    </item>
    <item>
      <title>second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264648#M99505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry that's not what i'm looking for. i have to be able to use it in an expression i order to compare max and second max value. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264648#M99505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-15T12:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264649#M99506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't use two max together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this: max(filedname,2) + max(filedname) in combination with aggr function also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264649#M99506</guid>
      <dc:creator />
      <dc:date>2011-09-15T12:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264650#M99507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264650#M99507</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-15T12:49:50Z</dc:date>
    </item>
    <item>
      <title>second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264651#M99508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You we're right, i was wrong. Max(date,2) worked perfectly! (i didn't have enough data to do it, that was it)&lt;/P&gt;&lt;P&gt;sorry for troubling you! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/264651#M99508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-15T13:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: second max value</title>
      <link>https://community.qlik.com/t5/QlikView/second-max-value/m-p/2054965#M1223118</link>
      <description>&lt;P&gt;max(filedname,2) does work indeeed, but I'm looking for a neat and easy solution in an expression the show all values &amp;gt;= the 12th last values : e.g. in an overvue show the values for the last 12 months.&lt;/P&gt;
&lt;P&gt;This will do the trick &lt;STRONG&gt;= {'&amp;gt;=$(=Max(fieldname, 12))'} &lt;/STRONG&gt;if there are more than 12 values available&lt;STRONG&gt;, &lt;/STRONG&gt;but &lt;STRONG&gt;fails&lt;/STRONG&gt; of there are only 4 values. It shows nothing...&lt;/P&gt;
&lt;P&gt;Expression is &lt;STRONG&gt;= sum( {$&amp;lt; period = {'&amp;gt;=$(=Max(period,12))'} &amp;gt;} valuename )&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I've came up with a solution to extra calc all distinct values and use the min() :&lt;/P&gt;
&lt;P&gt;= sum( {$&amp;lt; per = {'&amp;gt;=$(=Max(period, &lt;STRONG&gt;min(count( distinct period), 12)&lt;/STRONG&gt; ))'} &amp;gt;} valuename ) , but maybe there another easier solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/second-max-value/m-p/2054965#M1223118</guid>
      <dc:creator>andries_bos</dc:creator>
      <dc:date>2023-03-30T07:58:05Z</dc:date>
    </item>
  </channel>
</rss>

