<?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 How to Select The Last two selected from a list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Select-The-Last-two-selected-from-a-list/m-p/347902#M128775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i have a list of Month like:&amp;nbsp;&amp;nbsp; Jan, Fev, Mar, Apr, Mai, ... , Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose that the user has selected Fev, Apr and Dec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then i have a table that shows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={'=Max(Month)'}&amp;gt;} Sales) / Sum({Month={'=Somenthing to get Max(Month) - 1 from the Selection'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get the last but one (penultimate?) user selection?&lt;/P&gt;&lt;P&gt;&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, 12 Mar 2012 13:12:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-12T13:12:41Z</dc:date>
    <item>
      <title>How to Select The Last two selected from a list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-The-Last-two-selected-from-a-list/m-p/347902#M128775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i have a list of Month like:&amp;nbsp;&amp;nbsp; Jan, Fev, Mar, Apr, Mai, ... , Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose that the user has selected Fev, Apr and Dec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then i have a table that shows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={'=Max(Month)'}&amp;gt;} Sales) / Sum({Month={'=Somenthing to get Max(Month) - 1 from the Selection'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get the last but one (penultimate?) user selection?&lt;/P&gt;&lt;P&gt;&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, 12 Mar 2012 13:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-The-Last-two-selected-from-a-list/m-p/347902#M128775</guid>
      <dc:creator />
      <dc:date>2012-03-12T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Select The Last two selected from a list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Select-The-Last-two-selected-from-a-list/m-p/347903#M128776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can specify the rank as second parameter to max() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(Month,2) will return the second highest Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={'$(=Max(Month))'}&amp;gt;} Sales) / Sum({Month={'$(=Max(Month,2))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 13:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Select-The-Last-two-selected-from-a-list/m-p/347903#M128776</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-12T13:23:33Z</dc:date>
    </item>
  </channel>
</rss>

