<?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: Syntx issue with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076337#M359059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You seem to be lacking $-signs in front of the variables and furthermore you should also enclose the search string in double quotes:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({$&amp;lt;[Invoice Header.Order Creation Date] = {"&amp;gt;=$(vFromDate)&amp;lt;=$(vToDate)"}, [Date] = {"&amp;gt;$(vToDate)"}&amp;gt;}[Invoice Line.Amount Including VAT])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 19:31:29 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2016-03-02T19:31:29Z</dc:date>
    <item>
      <title>Syntx issue with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076336#M359058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a syntax issue with a set analysis formula I am trying to create. The formula is trying to SUM invoices where dates fall between 2 dates and the posting date is greater than the end date. I've created 2 variables and I know these variables are correct because I've checked them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Invoice Header.Order Creation Date] = {&amp;gt;= (vFromDate) &amp;lt;= (vToDate)}, [Date] = {&amp;gt; (vToDate)}&amp;gt;}[Invoice Line.Amount Including VAT])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vFromDate definition:&lt;/P&gt;&lt;P&gt;=(date(MonthStart(Max([Invoice Header.Order Creation Date])) - 365))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vToDate definition:&lt;/P&gt;&lt;P&gt;=(date(MonthEnd(Max([Date])) - 365))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use these variables alone they work but when I add them to the formula I get no results I think it's a syntax error but I don't see anything wrong with my formula.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can someone help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 18:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076336#M359058</guid>
      <dc:creator />
      <dc:date>2016-03-02T18:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Syntx issue with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076337#M359059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You seem to be lacking $-signs in front of the variables and furthermore you should also enclose the search string in double quotes:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({$&amp;lt;[Invoice Header.Order Creation Date] = {"&amp;gt;=$(vFromDate)&amp;lt;=$(vToDate)"}, [Date] = {"&amp;gt;$(vToDate)"}&amp;gt;}[Invoice Line.Amount Including VAT])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 19:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076337#M359059</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-03-02T19:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syntx issue with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076338#M359060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a slight inaccuracy in your calculation as not every year has 365 days. To be entirely accurate you would have to do something like this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vToDate definition:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Date( AddYear( MonthEnd( Max( [Date] ) ),&amp;nbsp; -1) )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Actually since you will then do only date calculations you should be able to simplify it into this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= AddYear( MonthEnd( Max( [Date] ) ), -1 )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And similarly with the other variable...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 19:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntx-issue-with-Set-Analysis/m-p/1076338#M359060</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-03-02T19:35:32Z</dc:date>
    </item>
  </channel>
</rss>

