<?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 MAX Aggregation &amp; Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250526#M1207900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;I can understand better now.&lt;/P&gt;&lt;P&gt;~Phoebe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 03:48:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-09T03:48:41Z</dc:date>
    <item>
      <title>MAX Aggregation &amp; Function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250524#M1207898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm just a beginner in QV. Hope anyone could help me on this..&lt;/P&gt;&lt;P&gt;Currenlty, I'm trying to create a graph that comparing Current Year Sales &amp;amp; Last Year Sales.&lt;/P&gt;&lt;P&gt;Knowing that i need to create 2 expression for this chart. I've 3 years data which is 2007, 2008 and 2009.&lt;/P&gt;&lt;P&gt;For example, if you select '2008' , the graph will show sales amount for 2008 &amp;amp; 2009.&lt;/P&gt;&lt;P&gt;I can get the result by using set analysis, but i'm wonder which expression is more suitable for my graph for Last Year Sales? With or wihout MAX function?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a.&lt;/STRONG&gt; Sum({$&amp;lt;[Invoice Year]={$(=([Invoice Year]-1))}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b.&lt;/STRONG&gt; Sum({$&amp;lt;[Invoice Year]={$(=MAX([Invoice Year]-1))}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;(The Max here should be aggregation or function?)&lt;/P&gt;&lt;P&gt;Although i've read thru the Max Aggregation &amp;amp; Function in Reference Manual but stil not very clear.&lt;/P&gt;&lt;P&gt;Appreciate anyone can clarify on this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phoebe Yaw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 10:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250524#M1207898</guid>
      <dc:creator />
      <dc:date>2010-04-08T10:17:56Z</dc:date>
    </item>
    <item>
      <title>MAX Aggregation &amp; Function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250525#M1207899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select a specific year, there should be no difference. Only one year is selected, so the max([Invoice Year]) equals the [Invoice Year]. The difference happens when you select no year or more than one year. The expression without the max() will then return nothing. The max([Invoice Year]) will give you data based on the most recent Invoice Year if none are selected, or on the maximum selected year if you've made multiple selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 01:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250525#M1207899</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-09T01:47:35Z</dc:date>
    </item>
    <item>
      <title>MAX Aggregation &amp; Function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250526#M1207900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;I can understand better now.&lt;/P&gt;&lt;P&gt;~Phoebe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 03:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250526#M1207900</guid>
      <dc:creator />
      <dc:date>2010-04-09T03:48:41Z</dc:date>
    </item>
    <item>
      <title>MAX Aggregation &amp; Function</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250527#M1207901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you take a look at the "only()" function it should do what you want. It will return the year only if you have a single value selected/possible.So your 2 expressions would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Invoice Year]={$(=only([Invoice Year]))}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Invoice Year]={$(=MAX([Invoice Year]-1))}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can pick any year and it will compare that year and the previous. You can set the calculation condition and text to check only() is returning a value also and prompt the user to select a year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 12:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Aggregation-Function/m-p/250527#M1207901</guid>
      <dc:creator />
      <dc:date>2010-05-06T12:50:01Z</dc:date>
    </item>
  </channel>
</rss>

