<?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: rangesum above stock in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767731#M718906</link>
    <description>&lt;P&gt;of course the user selects a year rt?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1607626137316.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45545i8EAEB3E78F1A1B29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1607626137316.png" alt="edwin_0-1607626137316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 18:49:07 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-12-10T18:49:07Z</dc:date>
    <item>
      <title>rangesum above stock</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767703#M718901</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope you're doing well !&lt;/P&gt;&lt;P&gt;I'm struggling on calculating a stock number using rangesum and above&lt;/P&gt;&lt;P&gt;here is a sample:&lt;/P&gt;&lt;P&gt;test:&lt;BR /&gt;LOAD *, Year(Date) as Year, 'Q'&amp;amp;Ceil(Month(Date)/3) as Quarter;&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Date, code, number&lt;BR /&gt;30/09/2020, A, 15&lt;BR /&gt;30/09/2020, B, 20&lt;BR /&gt;30/09/2020, C, 25&lt;BR /&gt;30/09/2020, D, 30&lt;BR /&gt;30/06/2020, A, 10&lt;BR /&gt;30/06/2020, B, 15&lt;BR /&gt;30/06/2020, C, 20&lt;BR /&gt;30/06/2020, D, 25&lt;BR /&gt;30/03/2020, A, 5&lt;BR /&gt;30/03/2020, B, 10&lt;BR /&gt;30/03/2020, C, 15&lt;BR /&gt;30/03/2020, D, 20&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I'm trying to calculate the sum of "number" column, it is a stock.&lt;/P&gt;&lt;P&gt;example: on Q3 quarter, number= 210&lt;/P&gt;&lt;P&gt;with a straight table, dimension= Year&amp;amp;' - '&amp;amp;Quarter, expression=&amp;nbsp;=sum({&amp;lt;Quarter={$(=MaxString(Quarter))}&amp;gt;}aggr(rangesum(above(sum({&amp;lt;Year,Quarter&amp;gt;}number),0,RowNo(TOTAL))),(Year,NUMERIC),(Quarter,TEXT)))&lt;/P&gt;&lt;P&gt;is is working well.&lt;/P&gt;&lt;P&gt;the problem is that I'm struggling to make it work with the "code" column on the table...&lt;/P&gt;&lt;P&gt;When I select Q3 on the quarter I need to get this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;30/09/2020&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/09/2020&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/09/2020&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/09/2020&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to take a look please guys ?&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Youssef&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767703#M718901</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2024-11-16T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: rangesum above stock</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767729#M718904</link>
      <description>&lt;P&gt;here is a simpler solution.&amp;nbsp; create a Quarter field that is numeric bec you want to add it to your set analysis in the line of where Quarter &amp;lt;= a number.&amp;nbsp; text will also work but i would prefer to use numbers.&amp;nbsp; then create a variable that will store the selected quarter number&lt;BR /&gt;&lt;BR /&gt;in your chart you can create a calculated dimension or expression for the date.&amp;nbsp; for your totals:&lt;BR /&gt;just sum where quarter&amp;lt;=selected quarter.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;im sure you can create a complicated expression and this is a simpler alternative&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767729#M718904</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-10T18:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: rangesum above stock</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767731#M718906</link>
      <description>&lt;P&gt;of course the user selects a year rt?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1607626137316.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45545i8EAEB3E78F1A1B29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1607626137316.png" alt="edwin_0-1607626137316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-above-stock/m-p/1767731#M718906</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-10T18:49:07Z</dc:date>
    </item>
  </channel>
</rss>

