<?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 rangesum where the total for the column is the start value for the next in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1746516#M453336</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am struggeling to create the following pivot table where the total (= End) for the first column is the Start-value for the second column and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41082i71FD5C0A1270DA5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried different rangesums, but I just cannot figure this one out because the value is always 0.&amp;nbsp; Can someone help me with the correct syntax?&amp;nbsp; I have attached the original qvw as an attachement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first Start-value should be :&amp;nbsp; &amp;nbsp;sum(Tankinhoud)&lt;/P&gt;&lt;P&gt;End =&amp;nbsp; Start + sum(Aanvoer) - sum(VerbruikPEBLIK)&lt;/P&gt;&lt;P&gt;Second column Start = End 1st column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; the reason for the set analyses is to show the dates in the pivot from friday till sundays (10 days) insteat of a normal week.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 16:08:19 GMT</pubDate>
    <dc:creator>bert_geraerts</dc:creator>
    <dc:date>2020-09-23T16:08:19Z</dc:date>
    <item>
      <title>rangesum where the total for the column is the start value for the next</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1746516#M453336</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am struggeling to create the following pivot table where the total (= End) for the first column is the Start-value for the second column and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41082i71FD5C0A1270DA5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried different rangesums, but I just cannot figure this one out because the value is always 0.&amp;nbsp; Can someone help me with the correct syntax?&amp;nbsp; I have attached the original qvw as an attachement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first Start-value should be :&amp;nbsp; &amp;nbsp;sum(Tankinhoud)&lt;/P&gt;&lt;P&gt;End =&amp;nbsp; Start + sum(Aanvoer) - sum(VerbruikPEBLIK)&lt;/P&gt;&lt;P&gt;Second column Start = End 1st column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; the reason for the set analyses is to show the dates in the pivot from friday till sundays (10 days) insteat of a normal week.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1746516#M453336</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2020-09-23T16:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: rangesum where the total for the column is the start value for the next</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1747226#M453382</link>
      <description>&lt;P&gt;it may be possible theres a way to do this in the chart using AGGR, ABOVE, and RANGESUM.&amp;nbsp; but i suggest an alternative solution using a bridge.&amp;nbsp; link the calendar date to 2 dates: 1 = current date and 2 = prior date.&amp;nbsp; then in your calculation, add datetype = CURRENT , then add a similar expression for END where datetype=PRIOR and then you get the prior date's totals.&amp;nbsp; of course if you dont want to see prior day's totals for the first entry, you can add and if statement.&amp;nbsp; see attached.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 14:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1747226#M453382</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-25T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: rangesum where the total for the column is the start value for the next</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1747963#M453415</link>
      <description>&lt;P&gt;Hi, thanks for that proposal, but the results don't seem right.&amp;nbsp; &amp;nbsp;I need a running total for it to be correct and I have solved it now by calculating a running total in the loading script.&amp;nbsp; With the help of a variable I can determine the start of this running total in the selected data range, but I still would like to know the correct formula to do the same in a pivot table and not the script.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I can do the same with a rangesum when I use a "normal" pivot table with rows, but when I use columns in the pivot table it gives me the wrong or no results.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1747963#M453415</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2020-09-29T07:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: rangesum where the total for the column is the start value for the next</title>
      <link>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1754153#M453706</link>
      <description>&lt;P&gt;You would need to use Set Analysis I believe, here are some links that may be helpful on that topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1746516#M453336" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1746516#M453336&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopefully this may help you sort things out using expressions instead of variables in the script.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rangesum-where-the-total-for-the-column-is-the-start-value-for/m-p/1754153#M453706</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-20T14:34:05Z</dc:date>
    </item>
  </channel>
</rss>

