<?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 Set analysis &amp;lt; max(YearMonth) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321079#M496989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefano. Works great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . If I understand correct the # sign returns the selection in relation to the current selection? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 13:12:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-07T13:12:47Z</dc:date>
    <item>
      <title>Set analysis &lt; max(YearMonth)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321076#M496986</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;Question about set analsis.&lt;/P&gt;&lt;P&gt;I wonder if it's possible to select every sales record smaller then the max selected year and month but keep the possibility to make selections in the dimension (the dimension contains projectnumbers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when I have the years 2010 and 2011 and months may and june selected it should sum all sales &amp;lt;= 201106 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;&lt;/P&gt;&lt;P&gt;YearMonth={$(=max(YearMonth))}&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will get the desired result but I will lose the flexibility to select any projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an aggr isn't working either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;&lt;/P&gt;&lt;P&gt;YearMonth={$(=max(YearMonth))}&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;,Project)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It give strange results. Anyone know how to fix this problem? An example is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 12:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321076#M496986</guid>
      <dc:creator />
      <dc:date>2011-10-07T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Set analysis &lt; max(YearMonth)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321077#M496987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if u try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;YearMonth = {"&amp;lt;=$(#=max(YearMonth))"}&amp;gt;} sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 12:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321077#M496987</guid>
      <dc:creator />
      <dc:date>2011-10-07T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Set analysis &lt; max(YearMonth)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321078#M496988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;YearMonth = {"&amp;lt;=$(#=max(YearMonth))"},Year,Month,Quarter&amp;gt;} sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't want that year,month,quarter interfree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 12:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321078#M496988</guid>
      <dc:creator />
      <dc:date>2011-10-07T12:51:35Z</dc:date>
    </item>
    <item>
      <title>Set analysis &lt; max(YearMonth)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321079#M496989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefano. Works great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . If I understand correct the # sign returns the selection in relation to the current selection? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321079#M496989</guid>
      <dc:creator />
      <dc:date>2011-10-07T13:12:47Z</dc:date>
    </item>
    <item>
      <title>Set analysis &lt; max(YearMonth)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321080#M496990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe it works without # also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ returns the selection in relation to the current selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-lt-max-YearMonth/m-p/321080#M496990</guid>
      <dc:creator />
      <dc:date>2011-10-07T13:25:10Z</dc:date>
    </item>
  </channel>
</rss>

