<?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 How i filter the expression with min and max in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339848#M493845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;I have an expresion similar that&amp;nbsp; =sum({&amp;lt;year = {2011,2010}&amp;gt;} profit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need sum the profit only a years different from the max of year in this case 2012&lt;/P&gt;&lt;P&gt;If i write ﻿=sum({&amp;lt;year={$(=max(year))} profit) run and sum the [profit for the max of year but shows error if i replace the = for the &amp;lt;&amp;lt; for given the sum of years that are minor of 2012.&lt;/P&gt;&lt;P&gt;How i write the expresion ?&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;year &amp;lt;&amp;lt; $(=max(year))&amp;gt;} profit) shows error.&lt;/P&gt;&lt;P&gt;Thanks in advance.&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>Mon, 07 May 2012 23:33:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-07T23:33:24Z</dc:date>
    <item>
      <title>How i filter the expression with min and max</title>
      <link>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339848#M493845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;I have an expresion similar that&amp;nbsp; =sum({&amp;lt;year = {2011,2010}&amp;gt;} profit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need sum the profit only a years different from the max of year in this case 2012&lt;/P&gt;&lt;P&gt;If i write ﻿=sum({&amp;lt;year={$(=max(year))} profit) run and sum the [profit for the max of year but shows error if i replace the = for the &amp;lt;&amp;lt; for given the sum of years that are minor of 2012.&lt;/P&gt;&lt;P&gt;How i write the expresion ?&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;year &amp;lt;&amp;lt; $(=max(year))&amp;gt;} profit) shows error.&lt;/P&gt;&lt;P&gt;Thanks in advance.&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>Mon, 07 May 2012 23:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339848#M493845</guid>
      <dc:creator />
      <dc:date>2012-05-07T23:33:24Z</dc:date>
    </item>
    <item>
      <title>How i filter the expression with min and max</title>
      <link>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339849#M493846</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;I don't know if I understood your question correctly, so tell me if im wrong okay?^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you have years 2010, 2011, and 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you want to sum the profit of all years (in this case 2010 AND 2011) that are &amp;lt; to your max year(which is 2012)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so, can you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;year = {"&amp;lt;$(=max(year))"}&amp;gt;}profit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do you want to know only the profit of last year (2011) base on your max year (2012)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is the case then you can try this instead^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;year = {$(=max(year)-1)}&amp;gt;}profit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 02:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339849#M493846</guid>
      <dc:creator />
      <dc:date>2012-05-08T02:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How i filter the expression with min and max</title>
      <link>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339850#M493847</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;You can exclude the max year with a minus preceding the equal : &lt;/P&gt;&lt;P&gt;=sum({&amp;lt;year &lt;SPAN style="font-size: 14pt; color: #ff0000;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;= {$(=max(year))} profit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 05:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-i-filter-the-expression-with-min-and-max/m-p/339850#M493847</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-05-08T05:52:06Z</dc:date>
    </item>
  </channel>
</rss>

