<?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 Computation in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615020#M63306</link>
    <description>&lt;P&gt;I need help calculating a measure in a pivot table which depends on 2 other measures.&lt;/P&gt;&lt;P&gt;The calculation is "The minimum number of cells (beyond the current column) in row A such that the sum of the values in row A exceeds the value of row B in the current cell)&lt;/P&gt;&lt;P&gt;See attached image.&lt;/P&gt;&lt;P&gt;Is this possible in a pivot table?&lt;/P&gt;&lt;P&gt;Here is the load script:&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;BR /&gt;Part,Measure,Date,Value&lt;BR /&gt;C1,B,8/20/2019,21&lt;BR /&gt;C1,B,8/21/2019,18&lt;BR /&gt;C1,B,8/22/2019,20&lt;BR /&gt;C1,B,8/23/2019,20&lt;BR /&gt;C1,B,8/24/2019,13&lt;BR /&gt;C1,B,8/25/2019,22.5&lt;BR /&gt;C1,B,8/26/2019,36&lt;BR /&gt;C1,B,8/27/2019,39&lt;BR /&gt;C1,B,8/28/2019,39&lt;BR /&gt;C1,B,8/29/2019,28.5&lt;BR /&gt;C1,B,8/30/2019,24.75&lt;BR /&gt;C1,A,8/20/2019,11&lt;BR /&gt;C1,A,8/21/2019,11&lt;BR /&gt;C1,A,8/22/2019,11&lt;BR /&gt;C1,A,8/23/2019,11&lt;BR /&gt;C1,A,8/24/2019,11&lt;BR /&gt;C1,A,8/25/2019,16.5&lt;BR /&gt;C1,A,8/26/2019,16.5&lt;BR /&gt;C1,A,8/27/2019,16.5&lt;BR /&gt;C1,A,8/28/2019,16.5&lt;BR /&gt;C1,A,8/29/2019,16.5&lt;BR /&gt;C1,A,8/30/2019,24.75&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;[PivotData]:&lt;BR /&gt;Generic Load Part, Date, Measure, Value Resident [Data];&lt;/P&gt;&lt;P&gt;Drop table [Data];&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 08:04:46 GMT</pubDate>
    <dc:creator>mborsadw</dc:creator>
    <dc:date>2021-04-02T08:04:46Z</dc:date>
    <item>
      <title>Computation in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615020#M63306</link>
      <description>&lt;P&gt;I need help calculating a measure in a pivot table which depends on 2 other measures.&lt;/P&gt;&lt;P&gt;The calculation is "The minimum number of cells (beyond the current column) in row A such that the sum of the values in row A exceeds the value of row B in the current cell)&lt;/P&gt;&lt;P&gt;See attached image.&lt;/P&gt;&lt;P&gt;Is this possible in a pivot table?&lt;/P&gt;&lt;P&gt;Here is the load script:&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;BR /&gt;Part,Measure,Date,Value&lt;BR /&gt;C1,B,8/20/2019,21&lt;BR /&gt;C1,B,8/21/2019,18&lt;BR /&gt;C1,B,8/22/2019,20&lt;BR /&gt;C1,B,8/23/2019,20&lt;BR /&gt;C1,B,8/24/2019,13&lt;BR /&gt;C1,B,8/25/2019,22.5&lt;BR /&gt;C1,B,8/26/2019,36&lt;BR /&gt;C1,B,8/27/2019,39&lt;BR /&gt;C1,B,8/28/2019,39&lt;BR /&gt;C1,B,8/29/2019,28.5&lt;BR /&gt;C1,B,8/30/2019,24.75&lt;BR /&gt;C1,A,8/20/2019,11&lt;BR /&gt;C1,A,8/21/2019,11&lt;BR /&gt;C1,A,8/22/2019,11&lt;BR /&gt;C1,A,8/23/2019,11&lt;BR /&gt;C1,A,8/24/2019,11&lt;BR /&gt;C1,A,8/25/2019,16.5&lt;BR /&gt;C1,A,8/26/2019,16.5&lt;BR /&gt;C1,A,8/27/2019,16.5&lt;BR /&gt;C1,A,8/28/2019,16.5&lt;BR /&gt;C1,A,8/29/2019,16.5&lt;BR /&gt;C1,A,8/30/2019,24.75&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;[PivotData]:&lt;BR /&gt;Generic Load Part, Date, Measure, Value Resident [Data];&lt;/P&gt;&lt;P&gt;Drop table [Data];&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615020#M63306</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2021-04-02T08:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Computation in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615026#M63307</link>
      <description>&lt;P&gt;Should be possible using&amp;nbsp; before/after functions. (and maybe above)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Before-and-After/ta-p/1488064" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Before-and-After/ta-p/1488064&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;share some sample data and we can try and help&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 18:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615026#M63307</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-08-21T18:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Computation in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615034#M63308</link>
      <description>&lt;P&gt;Load Script added to original post&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 18:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Computation-in-a-pivot-table/m-p/1615034#M63308</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2019-08-21T18:57:38Z</dc:date>
    </item>
  </channel>
</rss>

