<?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: How to save latest selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902461#M313837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use max() for this directly within the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; year = {"$(=max(year))"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;vs.&lt;/P&gt;&lt;P&gt;sum({&amp;lt; year = {"$(=max(year)-1)"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 14:17:03 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-04-13T14:17:03Z</dc:date>
    <item>
      <title>How to save latest selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902460#M313836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I need to save in a variable the value of the latest selection (year) for the computation of a sum on a previous year.&lt;/P&gt;&lt;P&gt;Anybody knows how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 14:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902460#M313836</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-04-13T14:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to save latest selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902461#M313837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use max() for this directly within the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; year = {"$(=max(year))"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;vs.&lt;/P&gt;&lt;P&gt;sum({&amp;lt; year = {"$(=max(year)-1)"}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 14:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902461#M313837</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-13T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to save latest selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902462#M313838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could do what Marcus suggested and not use variable at all. but if you want to create variables for other purposes, then create variables using Ctrl+Alt+V and click on Add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vMaxYear and expression will be =max(year)&lt;/P&gt;&lt;P&gt;2. vPrevYear and expression as = max(year) -1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-save-latest-selection/m-p/902462#M313838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-13T15:19:07Z</dc:date>
    </item>
  </channel>
</rss>

