<?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: How can i sum all records until a specific date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375555#M492462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hej Mikael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use set analysis here. You should add something along these lines (set analysis in italics - you may have to adapt it to fit your time dimension&lt;S&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;EM&gt;{$&amp;lt;Date= {"&amp;lt;=$(=max(Date))"}&amp;gt;}&lt;/EM&gt; Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 09:06:43 GMT</pubDate>
    <dc:creator>jjfabian</dc:creator>
    <dc:date>2012-07-02T09:06:43Z</dc:date>
    <item>
      <title>How can i sum all records until a specific date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375554#M492461</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;I need to sum all records (Amount) for all transactions up until a selected date period, i.e. a user selects a date&amp;nbsp; and wants the aggregated sales for all periods up to (but not including) the selected one. Plus i will need the same function for the selected period and all records after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 08:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375554#M492461</guid>
      <dc:creator />
      <dc:date>2012-07-02T08:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i sum all records until a specific date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375555#M492462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hej Mikael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use set analysis here. You should add something along these lines (set analysis in italics - you may have to adapt it to fit your time dimension&lt;S&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;EM&gt;{$&amp;lt;Date= {"&amp;lt;=$(=max(Date))"}&amp;gt;}&lt;/EM&gt; Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 09:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375555#M492462</guid>
      <dc:creator>jjfabian</dc:creator>
      <dc:date>2012-07-02T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can i sum all records until a specific date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375556#M492463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i figured this out;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt; DocumentYear =, DocumentMonth =, DocumentYearMonth=, DocumentQuarter = &amp;gt;} if(DocumentYearMonthNumeric &amp;lt; $(#=max(DocumentYearMonthNumeric)), Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer gives the same output and I assume set-analysis is a bit faster than using if...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 09:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375556#M492463</guid>
      <dc:creator />
      <dc:date>2012-07-02T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can i sum all records until a specific date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375557#M492464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two methods to show the sum.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt; $(=max(DATE))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) by Default this will show the sum of amount excluding the maximum date's amount. And after selection of a date it will give u the output as u want. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;2.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt; $(=(DATE))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; by Default it will show 0 untill u select a date and after selection it will give u correct output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Apurva&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 09:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-sum-all-records-until-a-specific-date/m-p/375557#M492464</guid>
      <dc:creator />
      <dc:date>2012-07-02T09:49:13Z</dc:date>
    </item>
  </channel>
</rss>

