<?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: Get maximum value (Set Analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732203#M262246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see above inline:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Letter, Qty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan-14, A, 100&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, A, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, A, 300&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, B, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, B, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, B, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, B, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, C, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, C, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, C, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun-14, C, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 06:26:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-24T06:26:22Z</dc:date>
    <item>
      <title>Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732190#M262233</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 have a question regarding the following conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table:&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" style="border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Letter&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Apr-14&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;May-14&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Jun-14&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Jul-14&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Aug-14&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Sep-14&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;200&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;300&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;400&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;500&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;B&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;200&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;300&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;400&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;C&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;600&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;700&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;800&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a table where I have to output the latest value (latest value is base on Letter (A&amp;lt;B&amp;lt;C&amp;lt;D,.....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output should be:&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" style="border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Apr-14 &lt;A&gt;&lt;/A&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;May-14 &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Jun-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Jul-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Aug-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Sep-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;Qty&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;600&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;700&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;800&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial,helvetica,sans-serif;"&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I achieve this? Please take note that my selection of letters can differ. I select A and C it should output something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" style="border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Apr-14 &lt;A&gt;&lt;/A&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;May-14 &lt;A&gt;&lt;/A&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Jun-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Jul-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Aug-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Sep-14 &lt;C&gt;&lt;/C&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;Qty&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;200&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;600&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;700&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;800&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: -moz-right; font-family: arial,helvetica,sans-serif;"&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The month selected also changes. How to achieve this? How can I only get the latest value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732190#M262233</guid>
      <dc:creator />
      <dc:date>2014-06-23T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732191#M262234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're talking about in the UI, not data model, I assume. So the above is a pivot table with month-year pivoted across the top, right? If so, the easiest way would probably be: firstsortedvalue(Qty,-ord(Letter))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 21:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732191#M262234</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-23T21:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732192#M262235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="latest.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61033_latest.PNG.png" style="width: 620px; height: 185px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 01:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732192#M262235</guid>
      <dc:creator />
      <dc:date>2014-06-24T01:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732193#M262236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply! how about if I have a computation inside the formula?&lt;/P&gt;&lt;P&gt;for example: sum(Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 01:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732193#M262236</guid>
      <dc:creator />
      <dc:date>2014-06-24T01:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732194#M262237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There you go. If you're happy can you mark mine as the correct answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 01:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732194#M262237</guid>
      <dc:creator />
      <dc:date>2014-06-24T01:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732195#M262238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply although base on the app you have given. Look @ Jun-14. You have summed up all for Jun-14. I only need the letter C which is the latest value (600). What I'm saying is. ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have many items for Jun-14 under letter C&lt;/P&gt;&lt;P&gt;Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Letter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY&lt;/P&gt;&lt;P&gt;Jun-14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P&gt;Jun-14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to sum it up so for Jun-14 = 600.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to output 600 not the sum of all the values under Jun-14&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 02:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732195#M262238</guid>
      <dc:creator />
      <dc:date>2014-06-24T02:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732196#M262239</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;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;CrossTable(Month, Qty)&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Letter, Apr-14, May-14, Jun-14, Jul-14, Aug-14, Sep-14&lt;/P&gt;&lt;P&gt;A ,100 ,200, 300, 400, 500, 600&lt;/P&gt;&lt;P&gt;B ,0 ,0,100, 200 ,300 ,400 ,500&lt;/P&gt;&lt;P&gt;C ,0,0 ,600 ,700, 800, 2500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Previous(Month) &amp;lt;&amp;gt; Month OR RowNo() = 1, 1, 0) AS IsLatest&lt;/P&gt;&lt;P&gt;RESIDENT Temp&lt;/P&gt;&lt;P&gt;WHERE Qty &amp;gt; 0&lt;/P&gt;&lt;P&gt;Order by Month, Letter Desc;&lt;/P&gt;&lt;P&gt;Drop table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this as expression in chart&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;IsLatest={1}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 04:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732196#M262239</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-24T04:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732197#M262240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 04:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732197#M262240</guid>
      <dc:creator />
      <dc:date>2014-06-24T04:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732198#M262241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. Almost there but I need to output not the highest but the latest Letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="1764"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Month&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Apr-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Apr-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Apr-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;May-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;May-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Jun-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Jun-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Jun-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Jul-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Jul-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Jul-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Aug-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Aug-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Aug-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Sep-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Sep-14&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Sep-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Letter&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;150&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;250&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;35&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;350&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;600&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;450&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;700&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;550&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;300&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;800&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;650&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example you have given, for Apr-14 output should be C not A. because it is the latest letter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 05:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732198#M262241</guid>
      <dc:creator />
      <dc:date>2014-06-24T05:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732199#M262242</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;Did you tried my script which I attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 05:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732199#M262242</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-24T05:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732200#M262243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently testing the script!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732200#M262243</guid>
      <dc:creator />
      <dc:date>2014-06-24T06:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732201#M262244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon testing, It works fine but it doesn't show show of the values I need. ex: I select Letter: A and C.&lt;/P&gt;&lt;P&gt;It shows all the latest but it's missing some dates which needs to be still shown. Please try to load this data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Letter, Qty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan-14, A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, A, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, A, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, B, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, B, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, B, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, B, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, C, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, C, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, C, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun-14, C, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select A and C, it will only show Jan, Mar, Apr, May, Jun. It should also show Feb (but it is not tag as latest)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732201#M262244</guid>
      <dc:creator />
      <dc:date>2014-06-24T06:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732202#M262245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Feb-14, B is latest, since you select only A and C, that is why B is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732202#M262245</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-24T06:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732203#M262246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see above inline:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Letter, Qty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan-14, A, 100&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, A, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, A, 300&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, B, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, B, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, B, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, B, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, C, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, C, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, C, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun-14, C, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732203#M262246</guid>
      <dc:creator />
      <dc:date>2014-06-24T06:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732204#M262247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are arriving the flag in script, the flag is marked for B in Feb-14, since you have selected A and C, you dont have B in the valid list.&amp;nbsp; If you want like this based on selections then you do this in UI level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, Letter, Qty&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan-14, A, 100&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, A, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, A, 100&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, A, 300&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb-14, B, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, B, 200&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, B, 70&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, B, 50&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar-14, C, 10&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr-14, C, 20&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May-14, C, 10&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun-14, C, 5&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Month&lt;/P&gt;&lt;P&gt;Expression: Sum(Aggr(If(MaxString(TOTAL&amp;lt;Month&amp;gt;Letter) = Letter,Sum(Qty)), Month, Letter))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732204#M262247</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-24T06:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732205#M262248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, Can you please elaborate on your expression? Looks an interesting one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732205#M262248</guid>
      <dc:creator />
      <dc:date>2014-06-24T06:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732206#M262249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one works like a charm! But I have another question. What if I have 2 kinds of values. Let say I have Qty and Revenue. I tried this one but it sums up the 2 values. As what Ram said, kindly elaborate the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 06:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732206#M262249</guid>
      <dc:creator />
      <dc:date>2014-06-24T06:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732207#M262250</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;Use this for getting Revenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension: Month&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression: Sum(Aggr(If(MaxString(TOTAL&amp;lt;Month&amp;gt;Letter) = Letter,Sum(Revenue)), Month, Letter))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Explanation:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MaxString(TOTAL&amp;lt;Month&amp;gt;Letter) - will give you the max letter in the month&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Letter - will give you the current row Letter Value&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(MaxString(TOTAL&amp;lt;Month&amp;gt;Letter) = Letter,Sum(Qty)) - If Max Letter of the month = Letter of current record then we are getting Sum(Qty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Aggr() - Will group the records by given fields, here we are using Month and Letter&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 07:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732207#M262250</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-24T07:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732208#M262251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! This is only thing I was looking for. Getting the maximum value in every column. (in this case the Month). So getting the maximum letter per Month. Again thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 07:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732208#M262251</guid>
      <dc:creator />
      <dc:date>2014-06-24T07:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get maximum value (Set Analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732209#M262252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have again a problem just like this, can you look into this?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/135247"&gt;Set analysis question&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2014 04:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-maximum-value-Set-Analysis/m-p/732209#M262252</guid>
      <dc:creator />
      <dc:date>2014-09-27T04:35:14Z</dc:date>
    </item>
  </channel>
</rss>

