<?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: sum based on two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109635#M898136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I used min (startdate) and I can achieve the correct results. But the requirement is like different dates for every product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a particular brand I have different products with different dates. So for overall - how I can achieve the result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2016 13:10:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-20T13:10:18Z</dc:date>
    <item>
      <title>sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109628#M898129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(vStartDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}*{&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vEndDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Actuals&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;The above equation shows the correct value when i click on each and every product. But when I click on Brand wise, it is not providing the correct value. The date range is not working if i click on two products at the same time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Am I missing any aggregation for date? Any suggestions will be appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109628#M898129</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109629#M898130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you define vStartDate and vEndDate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109629#M898130</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-20T13:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109630#M898131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are the variables defined? How are Products linked to Date and Actuals?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to post an example app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109630#M898131</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-20T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109631#M898132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStartDate = Date(aggr(Date_of_Product),product_key)&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;vEndDate=Addmonths(vstartDate,2)&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109631#M898132</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109632#M898133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that your two products have different startdates&lt;/P&gt;&lt;P&gt;can you check for each product what startdate is displayed (create textobject with vStartdate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109632#M898133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-20T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109633#M898134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need an aggregation inside your AGGR() function&lt;/P&gt;&lt;P&gt;Max()? Min()?&lt;/P&gt;&lt;P&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;Date(aggr( &lt;STRONG style="text-decoration: underline;"&gt;here&amp;nbsp; &lt;/STRONG&gt;Date_of_Product),product_key)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109633#M898134</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-20T13:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109634#M898135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right the two products having different startdates so in that case, how I'm able to get the sum of Actuals of two products. Any idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109634#M898135</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109635#M898136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I used min (startdate) and I can achieve the correct results. But the requirement is like different dates for every product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a particular brand I have different products with different dates. So for overall - how I can achieve the result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109635#M898136</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109636#M898137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use min or max&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;gt;=min($(vStartDate))"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}*{&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;lt;=max($(vEndDate))"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Actuals&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;not sure if Syntax is correct&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109636#M898137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-20T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109637#M898138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ techs us in &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function" title="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function&lt;/A&gt;&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: #000000; background-color: #f5faf0;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;1. Missing inner aggregation function&lt;/STRONG&gt;&lt;/SPAN&gt;&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: #000000; background-color: #f5faf0;"&gt;The first parameter of the Aggr() is a measure, and as such it is &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;always&lt;/EM&gt; an aggregation. Hence, you should use an aggregation function. If you don’t, the calculation will use Only() and the virtual table may inadvertently get NULLs in the Measure column. See more on &lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="3779" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/06/16/use-the-aggregation-functions" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #266fc8;"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109637#M898138</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-20T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109638#M898139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;try below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vStartDate = Date(min(aggr(min(Date_of_Product),product_key)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109638#M898139</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109639#M898140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you Need min max in variable&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;vStartDate = min(Date(aggr(Date_of_Product),product_key))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vEndDate=Addmonths(vstartDate,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;then you can Keep the expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;gt;=$(vStartDate)"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}*{&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;lt;=$(vEndDate)"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Actuals&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109639#M898140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-20T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109640#M898141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The requirement is like different date for different product so I have removed the min from the variable. Now I can get the value for every product but when i click on Brand it is not giving the proper summation. Date difference is not working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So where I have to use the aggregation exactly to resolve the issue. I have tried aggr() but its not working. Is there any solution for this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109640#M898141</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109641#M898142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A solution would be using AGGR as designed, with a inner aggregation function.&lt;/P&gt;&lt;P&gt;Please describe what &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;vStartDate should return&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109641#M898142</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-20T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109642#M898143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vStartDate should return the date_of_product which differs for each product&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109642#M898143</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109643#M898144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But what if you have "&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;two products at the same time&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;"? Which date should be returned?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109643#M898144</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-20T13:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109644#M898145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember that a variable (like a function) in general returns an atomic value (only one)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109644#M898145</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-20T13:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109645#M898146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes.. But this is what the requirement. So I couldn't find the solution. seeking the help of experts. Is there any way to achieve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109645#M898146</guid>
      <dc:creator />
      <dc:date>2016-07-20T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109646#M898147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But what if you have "&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New'; color: #000000;"&gt;two products at the same time&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New'; color: #000000;"&gt;"? Which date should be returned?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109646#M898147</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-20T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: sum based on two dates</title>
      <link>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109647#M898148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your variable will not return the correct value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&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;vStartDate = Date(aggr(min(Date_of_Product),product_key)&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;vEndDate=Addmonths(vstartDate,2)&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;&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;exp:&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;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(vStartDate) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;&amp;lt;= $(vEndDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Actuals&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;KC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-based-on-two-dates/m-p/1109647#M898148</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-07-20T13:37:46Z</dc:date>
    </item>
  </channel>
</rss>

