<?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 subtotals into my data table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-subtotals-into-my-data-table/m-p/222871#M75449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.02.89.41/Sum-SubTotals-2011021900.qvw]&lt;/P&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Need help to solve the following situation:&lt;/P&gt;&lt;P&gt;Please see the qvw attached.&lt;/P&gt;&lt;P&gt;I have a table with a list of actions (ACTs) to be done to a specific work order (Serial Key).&lt;/P&gt;&lt;P&gt;The expression "Line Time" gives me the number of minutes I have to work on EACH step (ACT).&lt;/P&gt;&lt;P&gt;In the expression "Line Time Sub Total" I need to calculate the number of minutes of ALL the acts that their position "Pos" value is smaller or equal to the position of the current act, so:&lt;/P&gt;&lt;P&gt;Act, Pos, LineTime, LineTimeSubTotal&lt;/P&gt;&lt;P&gt;100, 10, 1, 1&lt;/P&gt;&lt;P&gt;80, 20, 2, 3&lt;/P&gt;&lt;P&gt;500, 30, 1, 4&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;I have to solve it in the script.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aldo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Feb 2011 18:37:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-19T18:37:33Z</dc:date>
    <item>
      <title>Sum subtotals into my data table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-subtotals-into-my-data-table/m-p/222871#M75449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.02.89.41/Sum-SubTotals-2011021900.qvw]&lt;/P&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Need help to solve the following situation:&lt;/P&gt;&lt;P&gt;Please see the qvw attached.&lt;/P&gt;&lt;P&gt;I have a table with a list of actions (ACTs) to be done to a specific work order (Serial Key).&lt;/P&gt;&lt;P&gt;The expression "Line Time" gives me the number of minutes I have to work on EACH step (ACT).&lt;/P&gt;&lt;P&gt;In the expression "Line Time Sub Total" I need to calculate the number of minutes of ALL the acts that their position "Pos" value is smaller or equal to the position of the current act, so:&lt;/P&gt;&lt;P&gt;Act, Pos, LineTime, LineTimeSubTotal&lt;/P&gt;&lt;P&gt;100, 10, 1, 1&lt;/P&gt;&lt;P&gt;80, 20, 2, 3&lt;/P&gt;&lt;P&gt;500, 30, 1, 4&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;I have to solve it in the script.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aldo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 18:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-subtotals-into-my-data-table/m-p/222871#M75449</guid>
      <dc:creator />
      <dc:date>2011-02-19T18:37:33Z</dc:date>
    </item>
    <item>
      <title>Sum subtotals into my data table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-subtotals-into-my-data-table/m-p/222872#M75450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved it using RangeSum()... see below.&lt;/P&gt;&lt;P&gt;Aldo.&lt;/P&gt;&lt;P&gt;Chart2_16:&lt;BR /&gt;LOAD&lt;BR /&gt; 'A'&lt;BR /&gt; ,[Serial Key]&lt;BR /&gt; ,[Act]&lt;BR /&gt; ,[Pos]&lt;BR /&gt; ,[Act Name]&lt;BR /&gt; ,[Act Des]&lt;BR /&gt; ,[Total WTime]&lt;BR /&gt; ,[Total EmpTime]&lt;BR /&gt; ,[Total LineTime]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ,RangeSum(Peek(LineTimeSubTotal),[Total LineTime]) as LineTimeSubTotal&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RESIDENT Chart2_17&lt;BR /&gt; ORDER BY [Serial Key], Pos;&lt;BR /&gt;DROP TABLE Chart2_17;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Feb 2011 21:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-subtotals-into-my-data-table/m-p/222872#M75450</guid>
      <dc:creator />
      <dc:date>2011-02-19T21:25:32Z</dc:date>
    </item>
  </channel>
</rss>

