<?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: Set analysis syntax error ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318729#M117468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changed it ,still the same prob persists&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 17:23:21 GMT</pubDate>
    <dc:creator>swarup_malli</dc:creator>
    <dc:date>2011-11-14T17:23:21Z</dc:date>
    <item>
      <title>Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318725#M117464</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;The expression below is supposed to find the &lt;EM&gt;&lt;STRONG&gt;sum for dates betwen&amp;nbsp; 5/1/2009 and 4/30/2010&lt;/STRONG&gt;&lt;/EM&gt;,&amp;nbsp; &lt;STRONG&gt; here I'm passing the year using a variable&lt;/STRONG&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;I wanted to take care of upper limit for Enddate also, if Enddate falls between 01/01 to 4/30 of vCampaignYear +1 , i.e. in the same fiscal year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is wt i came up with , but unfortunately it still shows records whose membership has ended in the current fiscal year &lt;EM&gt;( in the attached application check year 2007, u'll see 4/21/2008 which falls in current fiscal year&lt;/EM&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;EM&gt;&lt;STRONG&gt;sum({&amp;lt; Enddate = {"&amp;gt;=$(=makedate($(vCampaignYearSelected),5,1)) &amp;lt;=$(=makedate($(vCampaignYearSelected)+1),4,30))"} &amp;gt;} COMBINEDGIFT)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: I'm attaching a sample application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;Swarup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318725#M117464</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-11-14T16:12:43Z</dc:date>
    </item>
    <item>
      <title>Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318726#M117465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The parentheses aren't balanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318726#M117465</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-11-14T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318727#M117466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I corrected the syntax now, still shows records where membership ended in the current fiscal year&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318727#M117466</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-11-14T16:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318728#M117467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Your ENDDATE field is in all caps, but in the expression it is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318728#M117467</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-11-14T17:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318729#M117468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changed it ,still the same prob persists&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318729#M117468</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-11-14T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318730#M117469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Still unbalanced parentheses. Take out right parentheses after +1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318730#M117469</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-11-14T17:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318731#M117470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, you want to exclude those records from taken into account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use as upper limit the year end of CampaignYear:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; ENDDATE = {"&amp;gt;=$(=makedate($(vCampaignYearSelected),5,1))&amp;lt;=$(=makedate($(vCampaignYearSelected),12,31))"} &amp;gt;} COMBINEDGIFT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirements don't seem to match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression below is supposed to find the &lt;EM&gt;&lt;STRONG&gt;sum for dates betwen&amp;nbsp; 5/1/2009 and 4/30/2010. (edit: for fiscal year 2009 ?)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is wt i came up with , but unfortunately it s&lt;STRONG&gt;till shows records whose membership has ended in the current fiscal year &lt;/STRONG&gt;&lt;EM&gt;( in the attached application check year 2007, u'll see 4/21/2008 which falls in current fiscal year&lt;/EM&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, 14 Nov 2011 17:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318731#M117470</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-14T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318732#M117471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; when I choose 2007, my application still shows 3 records , which it shoul'nt because the membership ended in the current fiscal year,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.this can't be my upper limit ...&amp;lt;=$(=makedate($(vCampaignYearSelected),12,31))"}. ....&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .my fiscal year ends in &lt;EM&gt;&amp;lt;=$(=makedate($(vCampaignYearSelected)+1,4,30))"}...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggested in my previous post ,Qlikview sometimes may not correct an expression when there are too many brackets , so in order to overcome that problem, I created&amp;nbsp; 2 new variables&amp;nbsp; for start and end of fical year , and used them in the application but still for 2007 it shows records whose membership ended in the current fiscal year (ie 4/21/2008 which is current fidcal year )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: i have attached a sample&amp;nbsp; application below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;&lt;EM&gt;~MS&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318732#M117471</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-11-14T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318733#M117472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Doesn't fiscal year 2007 got from 5/1/2007 to 4/30/2008?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318733#M117472</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-11-14T17:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318734#M117473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeh, fiscal year for 2007 -&amp;nbsp;&amp;nbsp;&amp;nbsp; starts from 5/1/2007 and ends on 4/30/2008&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 19:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318734#M117473</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-11-14T19:07:04Z</dc:date>
    </item>
    <item>
      <title>Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318735#M117474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swarup, I must admit I am pretty confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those three records show an enddate April 21st 2008, which is a date in your fiscal year 2007, see your previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me, showing these records seems to be correct if you would like to show all enddates within fiscal year 2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also for the other years, I don't see any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify, why you don't want to show them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 19:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318735#M117474</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-14T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318736#M117475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&amp;nbsp; ,what you said was right, the requirment was to&amp;nbsp; exclude records if they fall within the current year ,&lt;/P&gt;&lt;P&gt;which could have been accomplished with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; "sum({&amp;lt;ENDDATE= {"&amp;gt;=$(vLastFiscal)"}&amp;gt; } COMBINEDGIFT)"..&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;But instead of that&amp;nbsp; I was using &lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;= sum({&amp;lt;ENDDATE= {"&amp;gt;=$(vFirstFiscal))&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;=$(vLastFiscal&lt;/SPAN&gt;)"}&amp;gt; } COMBINEDGIFT) /* you are right it will show April21 2008 because of "&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;=$(vLastFiscal&lt;/SPAN&gt;)"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;condition.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000;"&gt;&lt;STRONG&gt;VFirstFiscal&lt;/STRONG&gt;=&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;=makedate($(vCampaignYearSelected),5,1)&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;EM&gt;vLastFiscal = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=makedate($(vCampaignYearSelected)+1,4,30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for bearing with me Stefan, it was a very silly mistake on my part , i should have seen it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; one more time ,,i got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;~ MS&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 20:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318736#M117475</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2011-11-14T20:01:06Z</dc:date>
    </item>
    <item>
      <title>Set analysis syntax error ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318737#M117476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swarup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good to hear that you solved your problem, I am still a little confused, but anyway, I don't need to understand everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice evening / day,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Shouldnt it be only larger than, not larger than / equal (Otherwise April 30 will also be in the range):&lt;/P&gt;&lt;P&gt; "sum({&amp;lt;ENDDATE= {"&amp;gt;$(vLastFiscal)"}&amp;gt; } COMBINEDGIFT)"..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 20:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax-error/m-p/318737#M117476</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-14T20:16:26Z</dc:date>
    </item>
  </channel>
</rss>

