<?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 Creating Cumulative Data Table for Specific Graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Cumulative-Data-Table-for-Specific-Graph/m-p/1207344#M625571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hello all:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a graph that needs to be created but before the graph can be created the underlying data must be manipulated in a specific order.&amp;nbsp; I have a table with projects id (Col A) , NPV (Col B), Investment (Col C), Ratio (NPV/Invest - Col D), Cumulative Invest (Col E), Cumulative NPV (Col G).&amp;nbsp; Columns F &amp;amp; H are just in the below file for reference as to how I need the formulas to work for columns D &amp;amp; E.&amp;nbsp; Columns D, E, &amp;amp; G are calculated columns and the only information I'm given (assume) are Project ID, NPV, and Investment.&amp;nbsp; The order that the data needs to be manipulated is:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="190" style="width: 480px; height: 191px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="214"&gt;&lt;SPAN style="color: #000080;"&gt;1. Create ratio by taking column B / column C = column D&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;2. Sort by column D descending&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;3. Create column E&amp;nbsp; = cumulative Investment (Essentially starting with row 1 and adds each subsequent row (i.e. row 1 = Invest1, row 2 = Invest1+Invest2.....)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;4. Create column G = &lt;SPAN style="color: #000080; font-size: 13.3333px;"&gt;cumulative NPV (Essentially starting with row 1 and adds each subsequent row (i.e. row 1 = NPV1, row 2 = NPV1+NPV2.....)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;5. Then create the graph (see below)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Entegris.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142825_Entegris.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The main issue I'm running into is the actions that need to be taken and the expression for creating the cumulative columns where row2 is equal to ColB,Row1 + ColB,Row2 and only after the data has been "ranked"/sorted by column D.&amp;nbsp; Any thoughts or suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 13:45:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-03T13:45:11Z</dc:date>
    <item>
      <title>Creating Cumulative Data Table for Specific Graph</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Cumulative-Data-Table-for-Specific-Graph/m-p/1207344#M625571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hello all:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a graph that needs to be created but before the graph can be created the underlying data must be manipulated in a specific order.&amp;nbsp; I have a table with projects id (Col A) , NPV (Col B), Investment (Col C), Ratio (NPV/Invest - Col D), Cumulative Invest (Col E), Cumulative NPV (Col G).&amp;nbsp; Columns F &amp;amp; H are just in the below file for reference as to how I need the formulas to work for columns D &amp;amp; E.&amp;nbsp; Columns D, E, &amp;amp; G are calculated columns and the only information I'm given (assume) are Project ID, NPV, and Investment.&amp;nbsp; The order that the data needs to be manipulated is:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="190" style="width: 480px; height: 191px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="214"&gt;&lt;SPAN style="color: #000080;"&gt;1. Create ratio by taking column B / column C = column D&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;2. Sort by column D descending&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;3. Create column E&amp;nbsp; = cumulative Investment (Essentially starting with row 1 and adds each subsequent row (i.e. row 1 = Invest1, row 2 = Invest1+Invest2.....)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;4. Create column G = &lt;SPAN style="color: #000080; font-size: 13.3333px;"&gt;cumulative NPV (Essentially starting with row 1 and adds each subsequent row (i.e. row 1 = NPV1, row 2 = NPV1+NPV2.....)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="color: #000080;"&gt;5. Then create the graph (see below)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Entegris.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142825_Entegris.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The main issue I'm running into is the actions that need to be taken and the expression for creating the cumulative columns where row2 is equal to ColB,Row1 + ColB,Row2 and only after the data has been "ranked"/sorted by column D.&amp;nbsp; Any thoughts or suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Cumulative-Data-Table-for-Specific-Graph/m-p/1207344#M625571</guid>
      <dc:creator />
      <dc:date>2016-11-03T13:45:11Z</dc:date>
    </item>
  </channel>
</rss>

