<?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: Aggr or Exist function syntax help: New customers added this year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245282#M93513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I modified expression.Once check the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2011 10:12:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-13T10:12:01Z</dc:date>
    <item>
      <title>Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245281#M93512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a&lt;STRONG&gt; calculated field that will flag "New" customers and "Existing Customers" based on the Customer Shipto Number not sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Critera:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Customer&lt;/STRONG&gt; - Shipto Customer number "&lt;STRONG&gt;Only Exists in Current Year" and not in any prior years&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Existing Customer- &lt;/STRONG&gt;Shipto Customer Number exists in any of the previous Fiscal Years and may exist in current fiscal year but not have any sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my latest attempt is below which did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr($(sCYear)[Fiscal Year],[ShipTo Customer])=Aggr($(sPYear)[Fiscal Year],[ShipTo Customer]) OR Aggr($(sCYear)[Fiscal Year],[ShipTo Customer])=Aggr($(sP2Year)[Fiscal Year],[ShipTo Customer]),'Existing','New')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer to use [ShipTo Customer number] instead of Sales to evaluate because it is possible for a customer to exist but not have any sales in the current year.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example we just finished our fiscal year in September 2011, October&amp;nbsp; 2011 begins the current fiscal year,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a customer has sales in October2011 but not in October 2010 that doesnt mean this customer is new, if this customer already exsited but just didnt have sales in the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise if Aggr is not the best approach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(sCYear)&amp;nbsp; &lt;/P&gt;&lt;P&gt;is a&amp;nbsp; variable created based on the below:&lt;/P&gt;&lt;P&gt;{$&amp;lt;[Fiscal&amp;nbsp; Year]={$(#vCurrYr)},[Fiscal Quarter]=,[Fiscal Month Name]= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(sPYear) &lt;/P&gt;&lt;P&gt;is a variable created based on below:&lt;BR /&gt;{$&amp;lt;[Fiscal&amp;nbsp; Year]={$(#vPrevYr)},[Fiscal Quarter]=,[Fiscal Month Name]= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(sP2Year)&lt;/P&gt;&lt;P&gt;is PrevYR-1&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;attached is a QVW for 2011 &amp;amp; 2010 Sales by customer number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 20:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245281#M93512</guid>
      <dc:creator />
      <dc:date>2011-10-12T20:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245282#M93513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I modified expression.Once check the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 10:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245282#M93513</guid>
      <dc:creator />
      <dc:date>2011-10-13T10:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245283#M93514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Use the following Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(max([Fiscal Year]),[ShipTo Customer])=Aggr(Min([Fiscal Year]),[ShipTo Customer]),'New','Existed') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 10:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245283#M93514</guid>
      <dc:creator />
      <dc:date>2011-10-13T10:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245284#M93515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/niranjan" id="jive-514276948978134251721" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;niranjan&lt;/A&gt; for your post, however &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the ShipTo Customer &lt;STRONG&gt;is new in Fiscal Year 2011,&lt;/STRONG&gt; then that customer should not have any sales in 2010,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only existing customers will have sales in both year 2011 and 2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above and attached QVW is showing New customers with both 2011 and 2010 sales and Existing customers with only 2010 sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to correct.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"New"&lt;/STRONG&gt; should show only sales in the current year becasue the customer would not have existed in the previous year, however "&lt;STRONG&gt;Existing" &lt;/STRONG&gt;would have sales in both years. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 15:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245284#M93515</guid>
      <dc:creator />
      <dc:date>2011-10-13T15:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245285#M93516</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;If I got it right, why not using the expression's labels that already exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;If&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[Sales$(vPrevYr)]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;0&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;'New'&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;'Existing'&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should show "New" whenever the user has zero sales in the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 17:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245285#M93516</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-13T17:43:19Z</dc:date>
    </item>
    <item>
      <title>Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245286#M93517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;two things to mention:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression is a colon missing (I put it in __) --&amp;gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(max([Fiscal Year]),[ShipTo Customer])=Aggr($(sPYear)&lt;SPAN style="text-decoration: underline;"&gt; , &lt;/SPAN&gt;[Fiscal Year],[ShipTo Customer]),'New','Existing')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im not sure if the expression above (with correct syntax)is working fine, I suggest another version using [Sales Amont] of last year &amp;gt; 0 which should point into right direction:&lt;/P&gt;&lt;P&gt;=if( aggr(sum({&amp;lt;[Fiscal Year]= {'$(vPrevYr)'} &amp;gt;} [Sales Amount]), [ShipTo Customer]) &amp;gt; 0,'New','Existing') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 19:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245286#M93517</guid>
      <dc:creator />
      <dc:date>2011-10-13T19:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245287#M93518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your input.&amp;nbsp; I added your recommended changes, please see attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our fiscal Year runs from Oct-Sep&lt;/P&gt;&lt;P&gt;I added in the fiscal month-year dimension to better show results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;The first expression (based on customer number)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Showed a New customer as existing, which i cant figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(max([Fiscal Year]),[ShipTo Customer])=Aggr($(sPYear)&lt;SPAN style="font-size: 12px; text-decoration: underline;"&gt; , &lt;/SPAN&gt;[Fiscal Year],[ShipTo Customer]),'New','Existing')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;The second expression (based on sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt; showed the same result, a New customer showed as Existing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( aggr(sum({&amp;lt;[Fiscal Year]= {'$(vPrevYr)'} &amp;gt;} [Sales Amount]), [ShipTo Customer]) &amp;gt; 0,'New','Existing')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF there is a way to check, if customer number existed in in Previous Year, Previous Year- 1 and Current Year, than that customer is &lt;STRONG&gt;"Existing"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Customer number only exists in Current Fiscal Year &lt;/STRONG&gt;than it is a &lt;STRONG&gt;New &lt;/STRONG&gt;Customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 20:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245287#M93518</guid>
      <dc:creator />
      <dc:date>2011-10-13T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245288#M93519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;below is my latest Expression in an attempt to identify &lt;STRONG&gt;'New"&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;If Shipto Customer numbers that only exist in the Current Year as &lt;STRONG&gt;'New"&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If existed in previous year, previous year -1 "and" current year, than flag as "Existing" &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr($(sCYear)[Fiscal Year],[ShipTo Customer])=Aggr($(sPYear)[Fiscal Year],[ShipTo Customer]) OR Aggr($(sCYear)[Fiscal Year],[ShipTo Customer])=Aggr($(sP2Year)[Fiscal Year],[ShipTo Customer]),'Existing','New')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The above is still showing sales in prior years as a &lt;STRONG&gt;'New"&lt;/STRONG&gt; customer which is incorrect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(sCYear) = current fiscal year&lt;/P&gt;&lt;P&gt;$(sPYear)= prior fiscal year&lt;/P&gt;&lt;P&gt;$(sP2Year= prior fiscal year-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 20:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245288#M93519</guid>
      <dc:creator />
      <dc:date>2011-10-13T20:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245289#M93520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi Joseph,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I looked at your app...&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I think you have a problem with your variables. &lt;/DIV&gt;&lt;DIV&gt;With your formulas I don't get the same Sales Amount Value for Fiscal Year 2010 when I use it as a Prev Year value compared to a Curr Year value.&lt;BR /&gt;Same for 2009. Look inside the attached file...&amp;nbsp; I put som textboxes there...&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But anyway I whoulden't bother to make variables. Why use Calender date? Why not Fiscal Year in the Set-expression.&lt;/DIV&gt;&lt;DIV&gt;Take a look at my Sales columns... &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Then, the New and Existing customer... &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt; added a few columns in your chart just to be able too look att the data...&lt;/DIV&gt;&lt;DIV&gt;The two columns that are of interesst is column 2 and 10&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Is it important that you have the New/Existing as a Dimension? It will be a calculated dimension and be bad for performance.It too complicate things.&lt;BR /&gt;If you can use the New/Existing as a expression column you will be better off and get better formulas...&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;So if you have to use it as a Dimension, add following as calculated Dimension:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max([Fiscal Year]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*-1)&amp;lt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;$(=max([Fiscal Year]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*-1)=0,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ShipTo Customer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'New','Existing') &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;If you can use it as a Expression, add following as an expression :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max([Fiscal Year]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*-1)&amp;lt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;$(=max([Fiscal Year]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*-1)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0,'New','Existing') &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;So consider where to put the logic and revisit your variable &lt;SPAN style="font-size: 8pt;"&gt;ePYYTDSale&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;BR &lt;/DIV&gt;&lt;DIV&gt;Hans&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 22:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245289#M93520</guid>
      <dc:creator />
      <dc:date>2011-10-13T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245290#M93521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/hansiola" id="jive-52486978217202375721" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;hansiola&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very much appreciated for your input!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cust No 1101200 &amp;amp; 12796750 are calculated correclty based on your attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the app that i am working on, the Calc dimension was my first option however upon reveiw, not all of the &lt;/P&gt;&lt;P&gt;calc dimension results are equal to the expression results and it appears that the expression results seem to be more consistant as a result i will used the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not aware that non numeric or % could be popultated in the expressions column as you have done attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will look into my variable, data and rerun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be a big help and help me to move forward on this project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 23:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245290#M93521</guid>
      <dc:creator />
      <dc:date>2011-10-13T23:23:54Z</dc:date>
    </item>
    <item>
      <title>Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245291#M93522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to me that you have also some duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, check / count the records for [ShipTo Customer] = 10022000 at Date 03-29-2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I noticed that there are some "balanced" records, 2 records with identical abs. Sales Amount but +/- sign, thus their sum is zero. But maybe this is ok, i don't know your business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 01:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245291#M93522</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-14T01:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245292#M93523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once i added to the live App, and used customer number instead of shipto my Calc dimension and Calc expression both tied and data irregualarities were fixed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JB&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;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-158236990010366757721" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;swuehl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 02:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245292#M93523</guid>
      <dc:creator />
      <dc:date>2011-10-14T02:04:06Z</dc:date>
    </item>
    <item>
      <title>Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245293#M93524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Here is another one using indirect set analysis. I included all years (2008, 2009 and 2010) to identify the new customer.&amp;nbsp; if you want to look back only a couple of years, you can remove $(=vPrevYr2-1).&amp;nbsp; Does this work for you?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ShipTo Customer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;E&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vPrevYr)&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vPrevYr2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=vPrevYr2-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Sum([Fiscal Year] = {$(vPrevYr), $(vPrevYr2), $(=vPrevYr2-1)} [Sales Amount])=0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}) &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ShipTo Customer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ShipTo Customer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 1, 'YES', 'NO')&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 02:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245293#M93524</guid>
      <dc:creator>sna</dc:creator>
      <dc:date>2011-10-14T02:10:40Z</dc:date>
    </item>
    <item>
      <title>Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245294#M93525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to look at all prev year,&lt;/P&gt;&lt;P&gt;You could use "&amp;lt;$(Max([Fiscal Year])" instead of your list of variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joseph, you can also use &lt;/P&gt;&lt;P&gt;if(Sum({1-1&amp;lt;[Fiscal Year]={$(=Max([Fiscal Year]))}&amp;gt;[Sales Amount]*-1)&amp;lt;&amp;gt;0,'N','E')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 05:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245294#M93525</guid>
      <dc:creator />
      <dc:date>2011-10-14T05:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245295#M93526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" href="https://community.qlik.com/people/sna" id="jive-22817038298196914879" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;Shima &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your recommendation also worked, Thank your for your help and input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 16:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245295#M93526</guid>
      <dc:creator />
      <dc:date>2011-10-14T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245296#M93527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/hansiola" id="jive-52487040339021502879" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;hansiola&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Sum({1-1&amp;lt;[Fiscal Year]={$(=Max([Fiscal Year]))}&amp;gt;[Sales Amount]*-1)&amp;lt;&amp;gt;0,'N','E')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;couldnt get this one to work, could you add to my QVW in this thread?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 16:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245296#M93527</guid>
      <dc:creator />
      <dc:date>2011-10-14T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245297#M93528</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;Sorry, I did this without my QV... So I missed a char... &lt;BR /&gt;The correct expression shall be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Sum({1-1&amp;lt;[Fiscal Year]={$(=Max([Fiscal Year]))}&amp;gt;}([Sales Amount]*-1))=0,'New','Existing')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It differs a little bit from the previous expressions.&lt;BR /&gt;They treated customer with no sales in any year as existing, due to the first condition had a operator &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;This will treat these customers as New. If you remove the first condition you vill end uppwith teh same result...&lt;/P&gt;&lt;P&gt;I.e.&lt;/P&gt;&lt;P&gt; if(sum({$&amp;lt;[Fiscal Year]={"&amp;lt;$(=max([Fiscal Year]))"}&amp;gt;}[Sales Amount]*-1)=0,'New','Existing')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why wolud we use the first expression? No reason, just wanted you to observe that you could do it like that...&lt;/P&gt;&lt;P&gt;I another expression it would be good to use a SET operator...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SET Analysis syntax look complicated but it isn't. I fairly easy and logical. Take a look inside the help-file.&lt;BR /&gt;I contains a lot of information and is pretty straight forward.&lt;/P&gt;&lt;P&gt;So if you want to take out the effekt of selecting a Fiscal Month Name you simply have to give that field a selection in the SET expression, a selection of nothing...&lt;/P&gt;&lt;P&gt;if( sum({$&amp;lt;[Fiscal Year]={"&amp;lt;$(=max([Fiscal Year]))"}, &lt;STRONG&gt;[Fiscal Month Name]=&lt;/STRONG&gt; &amp;gt;}[Sales Amount]*-1)=0,'New','Existing')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You have to include every field that the user might do a select in, for witch you want to cancel the effekt...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR &lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2011 09:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245297#M93528</guid>
      <dc:creator />
      <dc:date>2011-10-15T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr or Exist function syntax help: New customers added this year</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245298#M93529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi Joseph,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I got odd behavior when using the formula as dimension. But added a control for null and it works much better.&lt;/DIV&gt;&lt;DIV&gt;I also missed a &amp;gt;= in the 1-1&amp;lt;&amp;gt;&amp;nbsp; expresson, should be as folowing to work when selecting a lower fiscal year:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1-1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Max([Fiscal Year]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Month Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ShipTo Customer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}(fabs(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)*-1))=0,'New','Existing') &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I also added a fabs() in the expressions. Due to in some year you had for example 79 and -79 witch resulted in a 0 for that year.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Added the QVW...&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;BR&lt;/DIV&gt;&lt;DIV&gt;Hans &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2011 14:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-or-Exist-function-syntax-help-New-customers-added-this-year/m-p/245298#M93529</guid>
      <dc:creator />
      <dc:date>2011-10-15T14:01:02Z</dc:date>
    </item>
  </channel>
</rss>

