<?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 write this in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438717#M163529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use set modifier $1 for previous selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 11:47:52 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2013-05-08T11:47:52Z</dc:date>
    <item>
      <title>how to write this in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438716#M163528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I want to get the maximum phase number that is common in the current selection set of data and the set of data where season = last year's season&lt;/P&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;the user selects current season say it is 122 then last year's season is 112&lt;/P&gt;&lt;P&gt;max(PhaseNo) gives 1&lt;/P&gt;&lt;P&gt;max({&amp;lt;Season={$(vLastYearSeason)}&amp;gt;} PhaseNo) gives 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;knowing that $(vLastYearSeason) is 112&lt;/P&gt;&lt;P&gt;and if I put PhaseNo is a list box then when season is 122 then I have only Phase 1 in white&lt;/P&gt;&lt;P&gt;whereas when season is 112 i have phase 1 to phase 5 in white&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 11:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438716#M163528</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2013-05-08T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to write this in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438717#M163529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use set modifier $1 for previous selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 11:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438717#M163529</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-05-08T11:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to write this in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438718#M163530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved it this way&lt;/P&gt;&lt;P&gt;I created a variable with the following definition&lt;/P&gt;&lt;P&gt;=max(PhaseNo) &lt;/P&gt;&lt;P&gt;and let's say I gave it a name newVariable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I modified the expression as follows:&lt;/P&gt;&lt;P&gt;max({&amp;lt;Season={$(vLastYearSeason)}&amp;gt; * $} if(PhaseNo&amp;lt;=$(newVariable),PhaseNo))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 07:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-this-in-set-analysis/m-p/438718#M163530</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2013-05-09T07:43:29Z</dc:date>
    </item>
  </channel>
</rss>

