<?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 Sum UPTO Selected month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146235#M24831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach is to do the accumulation in the script:&lt;/P&gt;&lt;P&gt;LEFT JOIN LOAD&lt;BR /&gt; ID&lt;BR /&gt;,if(GL=previous(GL),peek('ACCUM')+AMOUNT,AMOUNT) as ACCUM&lt;BR /&gt;RESIDENT Fact&lt;BR /&gt;ORDER BY GL,DATE,ID;&lt;/P&gt;&lt;P&gt;Then use max(ACCUM) as your expression in the table. Now, that only works if all of your values are positive. If you have negative values, let me know, and I'll try to come up with something else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2009 02:28:56 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-06-11T02:28:56Z</dc:date>
    <item>
      <title>Sum UPTO Selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146233#M24829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am sure this has been asked many times before, but couldn't find with my search.&lt;/P&gt;&lt;P&gt;How do I show sum of amount upto the selected month in the timeline?&lt;/P&gt;&lt;P&gt;I have a fact table with Amount and Date. Then Date is connected to TimeLine which has month, year and monthname. I would like to show in the chart a dimention from fact and sum of amount upto selected month. If no month is selected, it should show sum of all the months.&lt;/P&gt;&lt;P&gt;For example, if user selects March 2009, I would like to should in the expression the sum of all the AMOUNTs from earliest possible date until end of March 2009.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 13:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146233#M24829</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-06-09T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Sum UPTO Selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146234#M24830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, here is an example document for what I need to do. Hopefully now I get an idea from expertes out there.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 20:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146234#M24830</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-06-09T20:52:48Z</dc:date>
    </item>
    <item>
      <title>Sum UPTO Selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146235#M24831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach is to do the accumulation in the script:&lt;/P&gt;&lt;P&gt;LEFT JOIN LOAD&lt;BR /&gt; ID&lt;BR /&gt;,if(GL=previous(GL),peek('ACCUM')+AMOUNT,AMOUNT) as ACCUM&lt;BR /&gt;RESIDENT Fact&lt;BR /&gt;ORDER BY GL,DATE,ID;&lt;/P&gt;&lt;P&gt;Then use max(ACCUM) as your expression in the table. Now, that only works if all of your values are positive. If you have negative values, let me know, and I'll try to come up with something else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 02:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146235#M24831</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-11T02:28:56Z</dc:date>
    </item>
    <item>
      <title>Sum UPTO Selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146236#M24832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a date table that is detached fom the data model. Use those dates as your filters. When it is selected, your expression can evaluate it.&lt;/P&gt;&lt;P&gt;Something like this: sum(If(DataDate &amp;lt;= DateSelected, amount))&lt;/P&gt;&lt;P&gt;The DateSelected variable reads the selected date and returns the max() selected Date from the detached Date table if they are selecting month. This way, the expresion is only evaluating one value and not a range. DateSelected = max(DetachedDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 02:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-UPTO-Selected-month/m-p/146236#M24832</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2009-06-11T02:50:10Z</dc:date>
    </item>
  </channel>
</rss>

