<?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 to calculate accumulated value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662824#M241482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after many trial and with help of Miguel,&lt;BR /&gt;finally it's resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 13:35:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-12T13:35:24Z</dc:date>
    <item>
      <title>How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662815#M241473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello every one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my data sample. What I need based on the&lt;BR /&gt;date selection. To show 2 calculated column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1&lt;SUP&gt;st&lt;/SUP&gt; one based on selected date range. And this is&lt;BR /&gt;easy done.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2&lt;SUP&gt;nd&lt;/SUP&gt; column bases on selected date I need to get&lt;BR /&gt;from day 1&amp;nbsp; up to Max (selected date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Accumulated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For the same item?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;This is my problem. Any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 08:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662815#M241473</guid>
      <dc:creator />
      <dc:date>2014-08-12T08:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662816#M241474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;Try adding a set analysis like:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14078346405752086" jivemacro_uid="_14078346405752086"&gt;
&lt;P&gt;Sum({&amp;lt; TrDate = {"&amp;lt;=$(=Date(MonthStart(TrDate), 'DD-MM-YYYY'))"} &amp;gt;} Quantity * Cost)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662816#M241474</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-08-12T09:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662817#M241475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this: sum({&amp;lt; Date={"&amp;lt;=$(=vDateJ_1)"},Année={$(vMaxYear)}&amp;gt;}yourmesure)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662817#M241475</guid>
      <dc:creator>syukyo_zhu</dc:creator>
      <dc:date>2014-08-12T09:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662818#M241476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;=sum ({&amp;lt;TrDate={"&amp;lt;=$(=Max(TrDate))"}&amp;gt;}Quantity * Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662818#M241476</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-12T09:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662819#M241477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't downloaded your sample (would take ages with our connection &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Generally said, though, you will certainly need &lt;STRONG&gt;Set_analysis&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;One of the easiest features of set_analysis (it can get nigh arbitrarily complex) is to disregard any&lt;/P&gt;&lt;P&gt;user_selections to begin&amp;nbsp; with - and then build an expression based on that one selection (using the GETFIELDSELECTIONS([field])l function.&lt;/P&gt;&lt;P&gt;It should then look sth like this:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp; SUM({1&amp;lt;date = {$(=max(date))}&amp;gt;} [field]) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is, the parameter 1 inside the curvy_brackets tells QV to disregard all selections to begin with, and within the pointed_brackets, you equal one existing field to a certain value, which, in your case, would be an expression. You can look up the details of the syntax in the help_file, in the excellent "QlikView 11 for Developers" - or you can ask here.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Sorry, no offense meant to anyone - but I just think that explaining how to do sth. works better than typing up a (albeit working) formula here - all those who don't want to do this over and over again, ask the mods to consider creating a Wiki as I have done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662819#M241477</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-08-12T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662820#M241478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey DataNibbler,&lt;/P&gt;&lt;P&gt;I also agree that the Qlik Community needs to be a fast place. I used to try and explain all things, resulting in quite long posts or just mere references to the Manual, and I admit I gave up. After joining Qlik I tried encouraging people to do what I thought it is best, then I realized I cannot push people to do things my way. That's one of the advantages of Qlik Community: you can have both detailed explanations in replies or blog posts, or quick answers.&lt;/P&gt;&lt;P&gt;I still try to do that when I see there is something wrong or very confusing, but for the time being I don't have the time to have my own blog (one internal plus one external).&lt;/P&gt;&lt;P&gt;We are lucky to have this eighteen resources (&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/22/the-qlikosphere-external-resources--part-i" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/03/22/the-qlikosphere-external-resources--part-i"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/03/22/the-qlikosphere-external-resources--part-i&lt;/A&gt;) -among many others!- about QlikView in general.&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662820#M241478</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-08-12T09:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662821#M241479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;agreed. The blogs are a great source of information also. Also, a Wiki is not a panacea - many users tend to have a look in Wikis, then decide that an article doesn't meet their exact requirements and scenario, and go back to the forum anyway to ask - I readily admit that I'm no exception.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662821#M241479</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-08-12T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662822#M241480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is pretty much close to what is need, but still not giving the correct value.&lt;/P&gt;&lt;P&gt;if I select 2nd Sept 2014 with Item Number 28508&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the accumulated value should be 1-9-2014 + 2-9-2014 days value&lt;/P&gt;&lt;P&gt;119.25 + 79.5 = 198.75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so its still not showing correct value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 11:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662822#M241480</guid>
      <dc:creator />
      <dc:date>2014-08-12T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662823#M241481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the formula to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; TrDate = {"&amp;lt;=$(=Min({$}TrDate), 'DD-MM-YYYY'))"} &amp;gt;} {$} Quantity * Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not showing any value.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662823#M241481</guid>
      <dc:creator />
      <dc:date>2014-08-12T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate accumulated value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662824#M241482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after many trial and with help of Miguel,&lt;BR /&gt;finally it's resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-accumulated-value/m-p/662824#M241482</guid>
      <dc:creator />
      <dc:date>2014-08-12T13:35:24Z</dc:date>
    </item>
  </channel>
</rss>

