<?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: help needed - Cummulative in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267053#M499428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gopinathanl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a note, you might need to sort your data first after Type, Month to ensure that Type data is consecutive (probably you have already done this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as I understand you want either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- add a row to the data for each missing month of a type (but up to which month?) with value 0 and correct accumulation. Then you have all data needed for selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;- include data in your table which is not selected (selected Month= April, but you want to show the last existing month for each type in row Cumm_Amt).&lt;/P&gt;&lt;P&gt;At the moment, I think about using set expression again, but this is probably not what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ist the requirement behind your question? To not use set expression as a exercise? Or do you have performance problems if using large amount of data and you want to perform the needed calculation while loading data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 11:47:13 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-07-08T11:47:13Z</dc:date>
    <item>
      <title>help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267050#M499425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have transaction table,the data looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the user selects the month Apr, then i need to show the output as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&amp;nbsp;&amp;nbsp;&amp;nbsp; Cumm_Amt&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working fine if i use the set analysis in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but wen i do this one in back end, i m getting only Type A for the month of Apr.&lt;/P&gt;&lt;P&gt;reason is i dont have the transation for B and C in Apr.&lt;/P&gt;&lt;P&gt;could anyone help me how to resolve this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 08:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267050#M499425</guid>
      <dc:creator />
      <dc:date>2011-07-08T08:49:13Z</dc:date>
    </item>
    <item>
      <title>help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267051#M499426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gopinathanl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please clarify, what do you mean with "back end"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 10:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267051#M499426</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-08T10:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267052#M499427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Back end means Script part,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script level,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i done like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(peek(Type)=Type,peek(Cumm)+Value,Value) as Cumm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 10:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267052#M499427</guid>
      <dc:creator />
      <dc:date>2011-07-08T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267053#M499428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gopinathanl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a note, you might need to sort your data first after Type, Month to ensure that Type data is consecutive (probably you have already done this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as I understand you want either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- add a row to the data for each missing month of a type (but up to which month?) with value 0 and correct accumulation. Then you have all data needed for selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;- include data in your table which is not selected (selected Month= April, but you want to show the last existing month for each type in row Cumm_Amt).&lt;/P&gt;&lt;P&gt;At the moment, I think about using set expression again, but this is probably not what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ist the requirement behind your question? To not use set expression as a exercise? Or do you have performance problems if using large amount of data and you want to perform the needed calculation while loading data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 11:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267053#M499428</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-08T11:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267054#M499429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for reply...&lt;/P&gt;&lt;P&gt;i want to add a row for each missing month upto today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bcoz wen i do the Cummulative in back end, some of them not having the transaction after certain months.&lt;/P&gt;&lt;P&gt;so the cummlative is computed upto that month. wen i select the current month it shows null.bcoz its not having the tranaction for last two or three months.it may have next month (we cant decide).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i done it in set analysis but my chart going very slow(bcoz of large amount of data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 04:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267054#M499429</guid>
      <dc:creator />
      <dc:date>2011-07-11T04:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267055#M499430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gopinathanl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find my proposal for adding the missing rows attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the script, these are the steps I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create or load the original input data table, plus additional unique TypeMonth&lt;/P&gt;&lt;P&gt;2. Create Table with preset values 0 for all Types, all Months&lt;/P&gt;&lt;P&gt;3. add rows with zero value to original data for all missing Type / Months combinations (i.e. TypeMonth)&lt;/P&gt;&lt;P&gt;4. Do the actual accumulation (your existing code, I added an order by)&lt;/P&gt;&lt;P&gt;5. add calendar till today's Month (lookup Month# to Month name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just curious, how many rows (Types / Months) do you load, resulting in bad performance using set analysis?&lt;/P&gt;&lt;P&gt;I am not sure if my&amp;nbsp; code is performant, at least it is calculated at load time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 15:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267055#M499430</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-12T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267056#M499432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the full accumaltion option on your table see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 19:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267056#M499432</guid>
      <dc:creator>shaunsomai</dc:creator>
      <dc:date>2011-07-12T19:49:07Z</dc:date>
    </item>
    <item>
      <title>help needed - Cummulative</title>
      <link>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267057#M499434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaunsomai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes I have tried, but this gives the accumulated values of the column, but as I gopinathanl understand want it per Type and only up to selected Month. &lt;/P&gt;&lt;P&gt;As I also understand gopinathanl was able to get the result using set expression in chart, but explicitely wanted to put the calculcations into the backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 09:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-needed-Cummulative/m-p/267057#M499434</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-13T09:03:47Z</dc:date>
    </item>
  </channel>
</rss>

