<?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: How to filter all previous years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184539#M49388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list box where user can select the Year. When I use your expression the number of Sales that I am getting does not change regardless of the Year selection. Should I use {1} instead of {$} ?&lt;/P&gt;&lt;P&gt;Also why are you sugesting max() function? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jan 2011 17:35:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-25T17:35:40Z</dc:date>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184537#M49386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I need help to write an expression to sum on Sales by all previous year relative to the selected year. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 16:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184537#M49386</guid>
      <dc:creator />
      <dc:date>2011-01-25T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184538#M49387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={"&amp;lt;=$(max(Year))"}&amp;gt;} Sales)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 16:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184538#M49387</guid>
      <dc:creator />
      <dc:date>2011-01-25T16:41:20Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184539#M49388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list box where user can select the Year. When I use your expression the number of Sales that I am getting does not change regardless of the Year selection. Should I use {1} instead of {$} ?&lt;/P&gt;&lt;P&gt;Also why are you sugesting max() function? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 17:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184539#M49388</guid>
      <dc:creator />
      <dc:date>2011-01-25T17:35:40Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184540#M49389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was missing a =, the expression is:&lt;/P&gt;&lt;P&gt;&lt;B&gt;sum&lt;/B&gt;({$&amp;lt;&lt;B&gt;Year&lt;/B&gt;={&lt;B&gt;"&amp;lt;=$(=max(Year))"&lt;/B&gt;}&amp;gt;} &lt;B&gt;Sales&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use max in case the user selects more than one year&lt;/P&gt;&lt;P&gt;best regards!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 17:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184540#M49389</guid>
      <dc:creator />
      <dc:date>2011-01-25T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184541#M49390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a non-Set Analysis solution that works for me - script and expressions should all be reasonably straight forward.&lt;/P&gt;&lt;P&gt;I'm sure it will be possible using Set Analysis but this works fine for me.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 17:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184541#M49390</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-01-25T17:56:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184542#M49391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Version using Set Analysis aswell is attached - it doesn't need to use the additional YearSelect field so is probably more suited.&lt;/P&gt;&lt;P&gt;Essentially the solution is:&lt;/P&gt;&lt;P&gt;sum({1 &amp;lt;Year = {'&amp;lt;$(vYear)'}&amp;gt;} total Sales)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;With vYear being simply =Year.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 18:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184542#M49391</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-01-25T18:05:25Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to filter all previous years</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184543#M49392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for greate help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 19:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-filter-all-previous-years/m-p/184543#M49392</guid>
      <dc:creator />
      <dc:date>2011-01-26T19:46:53Z</dc:date>
    </item>
  </channel>
</rss>

