<?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 Date Range with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236234#M504159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It seems to have a little syntax error in the set, I'd use&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum( {$&amp;lt;TIME_DATE = {"&amp;lt;$(&lt;B&gt;=date(&lt;/B&gt;weekend(today(1), -1)))&amp;gt;=$(&lt;B&gt;=date(&lt;/B&gt;yearstart(today(1))))"}&amp;gt;} REVENUE )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;(note the equal sign between opening parentheses and date function name. Except for that, it looks like correct to me. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Of course, TIME_DATE must be a date field properly fromatted in the load from the source.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 16:39:48 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-02-10T16:39:48Z</dc:date>
    <item>
      <title>Date Range with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236232#M504157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to have hit a brick wall with this one. I have looked at a whole series of posts - none of which seem to assist.&lt;/P&gt;&lt;P&gt;I have a simple problem in that i wish to retrieve sum between 2 dates in the following expression:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum( {$&amp;lt;TIME_DATE = {"&amp;lt;$(weekstart(today(1))) &amp;gt;=$(yearstart(today(1)))"}&amp;gt;} REVENUE )&lt;/P&gt;&lt;P&gt;where the result is needed for the 1st day of the year through to the last day of last week (as we are always looking retrospectively 1 week in arrears).&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 16:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236232#M504157</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2010-02-10T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Date Range with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236233#M504158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you just need equals signs in your dollar sign expansions:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum( {$&amp;lt;TIME_DATE = {"&amp;lt;$(=weekstart(today(1))) &amp;gt;=$(=yearstart(today(1)))"}&amp;gt;} REVENUE )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 16:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236233#M504158</guid>
      <dc:creator />
      <dc:date>2010-02-10T16:39:18Z</dc:date>
    </item>
    <item>
      <title>Date Range with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236234#M504159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It seems to have a little syntax error in the set, I'd use&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum( {$&amp;lt;TIME_DATE = {"&amp;lt;$(&lt;B&gt;=date(&lt;/B&gt;weekend(today(1), -1)))&amp;gt;=$(&lt;B&gt;=date(&lt;/B&gt;yearstart(today(1))))"}&amp;gt;} REVENUE )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;(note the equal sign between opening parentheses and date function name. Except for that, it looks like correct to me. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Of course, TIME_DATE must be a date field properly fromatted in the load from the source.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 16:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236234#M504159</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-02-10T16:39:48Z</dc:date>
    </item>
    <item>
      <title>Date Range with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236235#M504160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent answer! I have tried so many different things - even that one but the key was to ensure that the date field was properly formatted!&lt;/P&gt;&lt;P&gt;Thanks you Miguel !&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 17:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-with-Set-Analysis/m-p/236235#M504160</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2010-02-10T17:25:09Z</dc:date>
    </item>
  </channel>
</rss>

