<?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 between date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330944#M617924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be using Aggr()&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;&lt;STRONG&gt;Sum(Aggr(If(AP_DATA_VMD &amp;gt;= AP_AGEN_PAI_DTINI and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_DATA_VMD &lt;/SPAN&gt; &amp;lt;= AP_AGEN_PAI_DTINI, AP_VAL_VMD), YourCharDimensionsHere))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Apr 2017 15:38:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-03T15:38:13Z</dc:date>
    <item>
      <title>Sum between date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330941#M617921</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 need sum a values between two data, but this date don't&amp;nbsp; have any relationship.&lt;/P&gt;&lt;P&gt;In my dimension a have a package, and this package have a initial date and final date, so a have other table witch have a date and a values, i have tried did something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt; AP_DATA_VMD = {"&amp;gt;= $(=AP_AGEN_PAI_DTINI &amp;lt;=$(=AP_AGEN_PAI_DTINI"}&amp;gt;} AP_VAL_VMD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/158709_Capturar.JPG" style="height: 159px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Someone can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330941#M617921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-03T14:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330942#M617922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have the relation between &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_DATA_VMD &lt;/SPAN&gt; and &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_AGEN_PAI_DTINI &lt;/SPAN&gt; dates rite &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Push the start and end date values to a variable and use the same you will get results &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM({$&amp;lt; AP_DATA_VMD = {"&amp;gt;= '$(vStart)'&amp;lt;='$(vEnd)'}&amp;gt;} AP_VAL_VMD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; 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: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vStart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=min(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_DATA_VMD &lt;/SPAN&gt;) // change according to your requirement &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vEnd &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=max(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_DATA_VMD &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330942#M617922</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-04-03T14:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330943#M617923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;AP_DATA_VMD+&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_AGEN_PAI_DTINI&lt;/SPAN&gt;)&lt;/STRONG&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;STRONG&gt;Or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(Num(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;AP_DATA_VMD)+Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_AGEN_PAI_DTINI&lt;/SPAN&gt;))&lt;/STRONG&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;STRONG&gt;Or finally, may be this&lt;/STRONG&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;STRONG style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM({$&amp;lt; AP_DATA_VMD = {"&amp;gt;= '$(vStart)'&amp;lt;='$(vEnd)'}&amp;gt;} AP_VAL_VMD)// vStart is may be min and similar to max.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330943#M617923</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-03T14:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330944#M617924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be using Aggr()&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;&lt;STRONG&gt;Sum(Aggr(If(AP_DATA_VMD &amp;gt;= AP_AGEN_PAI_DTINI and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AP_DATA_VMD &lt;/SPAN&gt; &amp;lt;= AP_AGEN_PAI_DTINI, AP_VAL_VMD), YourCharDimensionsHere))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330944#M617924</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-03T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330945#M617925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Silva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this will be useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New'; font-size: 10pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 10pt;"&gt;[field1]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 10pt;"&gt;, 'MM/DD/YYYY') &amp;gt; 0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New'; font-size: 10pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 10pt;"&gt;() +&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New'; font-size: 10pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 10pt;"&gt;[field2]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 10pt;"&gt;, 'MM/DD/YYYY')&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: 'Courier New'; font-size: 10pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 10pt;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330945#M617925</guid>
      <dc:creator>yoganantha321</dc:creator>
      <dc:date>2017-04-03T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330946#M617926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for help,&lt;/P&gt;&lt;P&gt; But the problem was in my script, because i used "Concatenate". I fixed my script and&amp;nbsp; the Sunny code it worked...&lt;/P&gt;&lt;P&gt;I wanted use set analysis, but the date need be a variable, and my date is dynamics...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again community!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 18:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-date/m-p/1330946#M617926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-03T18:48:55Z</dc:date>
    </item>
  </channel>
</rss>

