<?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: Running Total Calculation in Script Level in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881581#M72628</link>
    <description>&lt;P&gt;Sorry for late reply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Date,Plant, Item, Factor, Value&lt;BR /&gt;March,P1, NAM, 1, 50 &lt;BR /&gt;March,P1, NAM, 3, 25 &lt;BR /&gt;March,P1, NAM, 12, 10 &lt;BR /&gt;March,P2, AFI, 5, 200 &lt;BR /&gt;March,P2, AFI, 9, 100 &lt;BR /&gt;March,P2, AFI, 1, 75 &lt;BR /&gt;April,P3, NAM, 10, 500 &lt;BR /&gt;April,P3, NAM, 11, 250 &lt;BR /&gt;April,P3, NAM, 3, 150 &lt;BR /&gt;April,P4, AFI, 8, 90 &lt;BR /&gt;April,P4, AFI, 3, 30 &lt;BR /&gt;April,P4, AFI, 1, 10 &lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;**bleep**:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD Date,Plant,Item,Value,&lt;BR /&gt;if(Previous(Date)=Date and Previous(Item)=Item and Previous(Plant)=Plant , RangeSum(Value,Peek('Cummulative Sales')),Value) as [Cummulative Sales]&lt;BR /&gt;Resident Data&lt;BR /&gt;Order by Date,Plant,Item;&lt;/P&gt;
&lt;P&gt;drop Table Data;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;you can create script like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 08:42:03 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2022-01-17T08:42:03Z</dc:date>
    <item>
      <title>Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880312#M72549</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I need to calculate the running total in script level, combination of Plant code and Item code, Please suggest to me ASAP,&amp;nbsp; We have script like this,&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;PLANT_CODE,&lt;BR /&gt;ITEM_CODE,&lt;BR /&gt;Key1,&lt;BR /&gt;DUE_DATE,&lt;BR /&gt;ITEM_DESCRIPTION,&lt;BR /&gt;ITEM_TYPE,&lt;BR /&gt;"Item Code Description",&lt;BR /&gt;"VENDOR_NUM" ,&lt;BR /&gt;"VENDOR_NAME",&lt;BR /&gt;"PO_NUMBER",&lt;BR /&gt;UOM,&lt;BR /&gt;COST,&lt;BR /&gt;day_key,&lt;BR /&gt;sum(ON_QTY) as ON_QTY,&lt;BR /&gt;DIM_TIME.REAL_DATE,&lt;BR /&gt;sum(EPO_QTY) as EPO_QTY,&lt;BR /&gt;sum(USAGE_QTY) as USAGE_QTY,&lt;BR /&gt;sum(Demand_QTY) as Demand_QTY&lt;BR /&gt;FROM [lib://DM_IPD_QVDs/Fact/Resin_Final_Master_Table.qvd]&lt;BR /&gt;(qvd)&lt;/P&gt;
&lt;P&gt;group By&lt;BR /&gt;PLANT_CODE,&lt;BR /&gt;ITEM_CODE,&lt;BR /&gt;Key1,&lt;BR /&gt;DUE_DATE,&lt;BR /&gt;ITEM_DESCRIPTION,&lt;BR /&gt;ITEM_TYPE,&lt;BR /&gt;"Item Code Descriptio",&lt;BR /&gt;UOM,&lt;BR /&gt;COST,&lt;BR /&gt;day_key,&lt;BR /&gt;DIM_TIME.REAL_DATE,"VENDOR_NUM" ,&lt;BR /&gt;"VENDOR_NAME",&lt;BR /&gt;"PO_NUMBER";&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 18:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880312#M72549</guid>
      <dc:creator>kirankumarsonoco</dc:creator>
      <dc:date>2022-01-12T18:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880464#M72556</link>
      <description>&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;PLANT_CODE,&lt;BR /&gt;ITEM_CODE,&lt;BR /&gt;Key1,&lt;BR /&gt;DUE_DATE,&lt;BR /&gt;ITEM_DESCRIPTION,&lt;BR /&gt;ITEM_TYPE,&lt;BR /&gt;"Item Code Description",&lt;BR /&gt;"VENDOR_NUM" ,&lt;BR /&gt;"VENDOR_NAME",&lt;BR /&gt;"PO_NUMBER",&lt;BR /&gt;UOM,&lt;BR /&gt;COST,&lt;BR /&gt;day_key,&lt;BR /&gt;sum(ON_QTY) as ON_QTY,&lt;BR /&gt;DIM_TIME.REAL_DATE,&lt;BR /&gt;sum(EPO_QTY) as EPO_QTY,&lt;BR /&gt;sum(USAGE_QTY) as USAGE_QTY,&lt;BR /&gt;sum(Demand_QTY) as Demand_QTY&lt;BR /&gt;FROM [lib://DM_IPD_QVDs/Fact/Resin_Final_Master_Table.qvd]&lt;BR /&gt;(qvd)&lt;/P&gt;
&lt;P&gt;group By&lt;BR /&gt;PLANT_CODE,&lt;BR /&gt;ITEM_CODE;&lt;/P&gt;
&lt;P&gt;Take Straight table &amp;amp; display fields dim : Plant_Code &amp;amp; Iteam Code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in expression sum(EPO_QTY)&amp;nbsp; etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 06:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880464#M72556</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-01-13T06:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880470#M72558</link>
      <description>&lt;P&gt;Hi Vikas,&lt;/P&gt;
&lt;P&gt;i need to achieve the running total in script level based on plant Code and Item Code&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 06:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880470#M72558</guid>
      <dc:creator>kirankumarsonoco</dc:creator>
      <dc:date>2022-01-13T06:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880537#M72565</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Then join with this code&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Right Join(&lt;SPAN&gt;Data&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;PLANT_CODE,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITEM_CODE,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;sum(EPO_QTY) as EPO_QTY,&lt;BR /&gt;sum(USAGE_QTY) as USAGE_QTY,&lt;BR /&gt;sum(Demand_QTY) as Demand_QTY&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Resident &lt;SPAN&gt;Data&lt;/SPAN&gt;&amp;nbsp; Group By&amp;nbsp;&lt;SPAN&gt;PLANT_CODE,&lt;/SPAN&gt;&lt;SPAN&gt;ITEM_CODE&lt;/SPAN&gt; &amp;nbsp; Order By&amp;nbsp;&lt;SPAN&gt;PLANT_CODE,&lt;/SPAN&gt;&lt;SPAN&gt;ITEM_CODE ;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 09:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880537#M72565</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-01-13T09:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880687#M72579</link>
      <description>&lt;P&gt;but i need to calculate the running sum value in script level, you have, can we connect some time&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1880687#M72579</guid>
      <dc:creator>kirankumarsonoco</dc:creator>
      <dc:date>2022-01-13T13:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881532#M72627</link>
      <description>&lt;P&gt;Please anyone suggest still this issue is not completed, i need to calculate the running total in script level based on Plant and Item code&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 05:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881532#M72627</guid>
      <dc:creator>kirankumarsonoco</dc:creator>
      <dc:date>2022-01-17T05:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881581#M72628</link>
      <description>&lt;P&gt;Sorry for late reply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Date,Plant, Item, Factor, Value&lt;BR /&gt;March,P1, NAM, 1, 50 &lt;BR /&gt;March,P1, NAM, 3, 25 &lt;BR /&gt;March,P1, NAM, 12, 10 &lt;BR /&gt;March,P2, AFI, 5, 200 &lt;BR /&gt;March,P2, AFI, 9, 100 &lt;BR /&gt;March,P2, AFI, 1, 75 &lt;BR /&gt;April,P3, NAM, 10, 500 &lt;BR /&gt;April,P3, NAM, 11, 250 &lt;BR /&gt;April,P3, NAM, 3, 150 &lt;BR /&gt;April,P4, AFI, 8, 90 &lt;BR /&gt;April,P4, AFI, 3, 30 &lt;BR /&gt;April,P4, AFI, 1, 10 &lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;**bleep**:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD Date,Plant,Item,Value,&lt;BR /&gt;if(Previous(Date)=Date and Previous(Item)=Item and Previous(Plant)=Plant , RangeSum(Value,Peek('Cummulative Sales')),Value) as [Cummulative Sales]&lt;BR /&gt;Resident Data&lt;BR /&gt;Order by Date,Plant,Item;&lt;/P&gt;
&lt;P&gt;drop Table Data;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;you can create script like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 08:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881581#M72628</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2022-01-17T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Calculation in Script Level</title>
      <link>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881629#M72633</link>
      <description>&lt;P&gt;I have tried&amp;nbsp; above script but still cumulative values are not coming, see below screenshot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kirankumarsonoco_0-1642414038757.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70331iA3F34A9F8431219B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kirankumarsonoco_0-1642414038757.png" alt="kirankumarsonoco_0-1642414038757.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Running-Total-Calculation-in-Script-Level/m-p/1881629#M72633</guid>
      <dc:creator>kirankumarsonoco</dc:creator>
      <dc:date>2022-01-17T10:06:38Z</dc:date>
    </item>
  </channel>
</rss>

