<?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 If and with date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250097#M495986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, if you can post a sample application then I will be in a better position to help because it will help to understand that what will be your scenario and where you want to show it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 18:44:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-02T18:44:42Z</dc:date>
    <item>
      <title>If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250092#M495981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to sum a value between a certain date range for time-series data, grouped by Object (if it falls out of the range I would like the result to be a 0):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(IF([Date]&amp;amp;lt;MAX([Date]) and [Date] &amp;gt; MAX([Date])-365, sum([Value]),0),[Object ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data consists of Object ID, Date and Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression&amp;nbsp;returns 0 when I know for sure the sum should equal a positive integer (e.g. 20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 17:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250092#M495981</guid>
      <dc:creator />
      <dc:date>2012-02-02T17:52:07Z</dc:date>
    </item>
    <item>
      <title>If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250093#M495982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(IF([Date]&amp;amp;lt;MAX([Date]) and [Date] &amp;gt; MAX([Date])-365, sum([Value]),0),[Object ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 17:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250093#M495982</guid>
      <dc:creator />
      <dc:date>2012-02-02T17:53:38Z</dc:date>
    </item>
    <item>
      <title>If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250094#M495983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I believe for that you can use inmonths() function. This can be used to test if two dates fall between a range say 1 month,2 month, 6 month and at max 12 months etc.&lt;/P&gt;&lt;P&gt;So, you will be able to calculate if they fall in range.&lt;/P&gt;&lt;P&gt;There are some other functions also, to see more about these functions go to help in Qlikview developer and search date and time functions or you can also search inmonths.&lt;/P&gt;&lt;P&gt;Qlikview reference manual will give you more detailed answer.&lt;/P&gt;&lt;P&gt;if you face any issue then just let us know and provide a little more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250094#M495983</guid>
      <dc:creator />
      <dc:date>2012-02-02T18:13:16Z</dc:date>
    </item>
    <item>
      <title>If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250095#M495984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried converting with date function just in case. It still won't calculate. I can't use in month because I need to specify the number of days, ie if the date is greater than the date - x days then sum the value in that range...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250095#M495984</guid>
      <dc:creator />
      <dc:date>2012-02-02T18:22:40Z</dc:date>
    </item>
    <item>
      <title>If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250096#M495985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should've read If the date is greater than the max of the date - x days...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250096#M495985</guid>
      <dc:creator />
      <dc:date>2012-02-02T18:23:47Z</dc:date>
    </item>
    <item>
      <title>If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250097#M495986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, if you can post a sample application then I will be in a better position to help because it will help to understand that what will be your scenario and where you want to show it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250097#M495986</guid>
      <dc:creator />
      <dc:date>2012-02-02T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: If and with date</title>
      <link>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250098#M495987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached what I'm specifically looking for. Note that the -6 in the expression will be changed...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 20:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-and-with-date/m-p/250098#M495987</guid>
      <dc:creator />
      <dc:date>2012-02-02T20:40:57Z</dc:date>
    </item>
  </channel>
</rss>

