<?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 Prior and Current Date Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015611#M344236</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;Try with "=" inside the dollar sign expansions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;END_Date&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;"&amp;gt;$(&lt;STRONG&gt;=&lt;/STRONG&gt;vMinDate)&amp;lt;=$(&lt;STRONG&gt;=&lt;/STRONG&gt;vMaxDate)"&lt;/SPAN&gt;}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;[Type]&lt;/SPAN&gt;={'Income: Other'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;[Amount]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2016 18:01:18 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2016-02-11T18:01:18Z</dc:date>
    <item>
      <title>Sum Prior and Current Date Help</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015610#M344235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get this sum prior and current date working. What I did, I assigned 2 variables for the current and prior date. Please help and see below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior Date:&lt;/P&gt;&lt;P&gt;vMinDate=Max({&amp;lt;END_Date={"&amp;lt;$(=MonthStart(Max(END_Date)-1))"}&amp;gt;} END_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Date:&lt;/P&gt;&lt;P&gt;vMaxDate=Max({&amp;lt;END_Date={"&amp;lt;$(=MonthStart(Max(END_Date)0))"}&amp;gt;} END_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;END_Date&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;gt;$(vMinDate)&amp;lt;=$(vMaxDate)"&lt;/SPAN&gt;}, &lt;SPAN style="color: #800000;"&gt;[Type]&lt;/SPAN&gt;={'Income: Other'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Amount]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where I try to accomplish here is to sum where &amp;lt;= '12/31/15' (vMaxDate)&amp;nbsp; &amp;gt; '11/30/15' (vMinDate) with&amp;nbsp; Type = 'Income: Other'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015610#M344235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Prior and Current Date Help</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015611#M344236</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;Try with "=" inside the dollar sign expansions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;END_Date&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;"&amp;gt;$(&lt;STRONG&gt;=&lt;/STRONG&gt;vMinDate)&amp;lt;=$(&lt;STRONG&gt;=&lt;/STRONG&gt;vMaxDate)"&lt;/SPAN&gt;}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;[Type]&lt;/SPAN&gt;={'Income: Other'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;[Amount]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015611#M344236</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-02-11T18:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Prior and Current Date Help</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015612#M344237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also I would add Date() function around the variables with the required formatting, because set analysis only works when LHS have the same formatting as RHS. Currently your RHS will be converted to Number when you use Max function with it:&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;Prior Date:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMinDate = &lt;STRONG&gt;Date(&lt;/STRONG&gt;Max({&amp;lt;END_Date={"&amp;lt;$(=MonthStart(Max(END_Date)-1))"}&amp;gt;} END_Date)&lt;STRONG&gt;, 'YourDateFormatHere')&lt;/STRONG&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: #3d3d3d;"&gt;Current Date:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxDate = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Date(&lt;/STRONG&gt;&lt;/SPAN&gt;Max({&amp;lt;END_Date={"&amp;lt;$(=MonthStart(Max(END_Date)0))"}&amp;gt;} END_Date)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;, 'YourDateFormatHere')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015612#M344237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-11T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Prior and Current Date Help</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015613#M344238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sinan!!! works fine with the '=' added&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015613#M344238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T18:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Prior and Current Date Help</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015614#M344239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny - Thanks for the information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Prior-and-Current-Date-Help/m-p/1015614#M344239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T19:01:01Z</dc:date>
    </item>
  </channel>
</rss>

