<?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 first date and max selection date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252979#M461691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Normally this would suffice if the date format of the field Date is MM/DD/YYYY and your year, month and day fields are called Year, Month and Day:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;=sum({$&amp;lt;Year=,Month=,Day=,Date={"&amp;lt;=$(=Date(max(Date),'MM/DD/YYYY'))"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 11:13:17 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-12-13T11:13:17Z</dc:date>
    <item>
      <title>Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252978#M461690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to Qlik, and I've tried to search for the answer, but with no success.&lt;/P&gt;&lt;P&gt;I was hoping you could help me out on this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on an app for inventory balances, which pretty much means I have to sum everything from first date to "max of selection date" if you know what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a line chart, but all that does at the moment is summing the transactions within the date selections I make. That's obvious and I get that. But how would I go about accumulating the values of the selections I make? &lt;/P&gt;&lt;P&gt;The goal is a line chart showing the inventory balance by year, month and day (as a drilldown).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a MasterCalendar, and I made a field min(Date) as FirstDate resident MasterCalendar.&lt;/P&gt;&lt;P&gt;I was thinking the only way I'd be able to do this is through setting a daterange from FirstDate to.. max selected date, but I'm struggling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying various approaches, but could you please advise?&lt;/P&gt;&lt;P&gt;This just sums the selection range.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({$ &amp;lt;Date={"&amp;gt;=$(=FirstDate)&amp;lt;=$(max(Date))"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$ &amp;lt;Date={"&amp;gt;=$(=FirstDate)&amp;lt;=$(=LastDate)"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$ &amp;lt;Date={"&amp;gt;=1(=FirstDate)&amp;lt;=$(=LastDate)"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new, please bear with me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Vegard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252978#M461690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-13T09:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252979#M461691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Normally this would suffice if the date format of the field Date is MM/DD/YYYY and your year, month and day fields are called Year, Month and Day:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;=sum({$&amp;lt;Year=,Month=,Day=,Date={"&amp;lt;=$(=Date(max(Date),'MM/DD/YYYY'))"}&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 11:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252979#M461691</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-13T11:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252980#M461692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with your formula, but it ended up being zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a preview of the mastercalendar:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV-Date.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146480_QV-Date.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I changed to MM.DD.YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Year=,Month=,Day=,Date={"&amp;lt;=$(=Date(max(Date),'MM.DD.YYYY'))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252980#M461692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-13T12:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252981#M461693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might have DD.MM.YYYY instead of MM.DD.YYYY....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&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({$&amp;lt;Year=,Month=,Day=,Date={"&amp;lt;=$(=Date(max(Date),'DD.MM.YYYY'))"}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252981#M461693</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-13T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252982#M461694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post a screenshot of the data model. Or better yet a small qlikview document with some example data that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252982#M461694</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-13T16:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252983#M461695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, my god - I was sure I did use DD.MM.YYYY..&lt;/P&gt;&lt;P&gt;It's now summing properly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really awesome, thanks!&lt;/P&gt;&lt;P&gt;I'm not sure how to reward in this case, you pointed out my baby-step error Sunny, but Gysbert came with the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 07:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252983#M461695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-15T07:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum between first date and max selection date</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252984#M461696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as you get what you want, I or Gysbert don't really care who get the correct response. Beside, you already awarded me with the points via Helpful response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-between-first-date-and-max-selection-date/m-p/1252984#M461696</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-15T16:43:33Z</dc:date>
    </item>
  </channel>
</rss>

