<?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 get the previous selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779087#M1025671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Louie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a Set Analysis function, not the parameter expression. Look it up in the Help article "Set Analysis".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 00:26:41 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2015-03-11T00:26:41Z</dc:date>
    <item>
      <title>How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779083#M1025667</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;Simply I have a nested data (Parent-Child mode) so I'm displaying the data for the current selection record and all related children.&lt;/P&gt;&lt;P&gt;However, one issue I have is I can't in my current set analysis filter statement use $1 to get the previous selection since I need to use '1' to get data beyond the current selection. So, how can I get -within my set analysis- the previous selection for a certain record (which is the ParentId of the current record) in order to pass it on and filter the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current expression is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum( {1&amp;lt;HID={"$(vHID)*"},CurrentLevel={'&amp;gt;=$(=vCurrentLevel)'}&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I just want to add another condition like:&lt;STRONG&gt; ParentId = Previous Selection ID.&lt;/STRONG&gt;&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, 10 Mar 2015 21:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779083#M1025667</guid>
      <dc:creator />
      <dc:date>2015-03-10T21:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779084#M1025668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ParentID = P({$1} ParentID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 22:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779084#M1025668</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-03-10T22:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779085#M1025669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg, how could I use the P() function in a parameter expression in order to pass the value over?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 22:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779085#M1025669</guid>
      <dc:creator />
      <dc:date>2015-03-10T22:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779086#M1025670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p() represents a set of possible values&lt;/P&gt;&lt;P&gt; and&lt;/P&gt;&lt;P&gt;$1 - Represents the previous selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 23:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779086#M1025670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-10T23:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779087#M1025671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Louie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a Set Analysis function, not the parameter expression. Look it up in the Help article "Set Analysis".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 00:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779087#M1025671</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-03-11T00:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779088#M1025672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, how can I display the value of the P() function on my straight table? I tried to add an expression, but I couldn't! I just want to see the value of the&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ParentID = P({$1} ParentID)&lt;/STRONG&gt; just for debugging purposes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 19:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779088#M1025672</guid>
      <dc:creator />
      <dc:date>2015-03-11T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the previous selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779089#M1025674</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;only({&amp;lt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;ParentID = P({$1} ParentID) &lt;/STRONG&gt;&amp;gt;}&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;ParentID )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 22:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-previous-selection/m-p/779089#M1025674</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-03-11T22:59:02Z</dc:date>
    </item>
  </channel>
</rss>

