<?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 Spread a sum over time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233495#M85032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe somebody of you has an idea regarding a problem of mine i want to solve in qlikview.&lt;/P&gt;&lt;P&gt;I want to make an report about crm data. I have an opportunity with a potential sales volume. I also have a date when we make the delivery for this opportunity. In real life thought, not all of the sales volume is delivered at once, but in smaller parts over a period of time.&lt;/P&gt;&lt;P&gt;So i need volume (1000), delivery Date 01.01.2010&lt;/P&gt;&lt;P&gt;-&amp;gt; 01.01 333.33&lt;/P&gt;&lt;P&gt;-&amp;gt;01.02 333.333&lt;/P&gt;&lt;P&gt;-&amp;gt;01.03 333.33&lt;/P&gt;&lt;P&gt;I found a way to do it in the script by using a for loop.&lt;/P&gt;&lt;P&gt;I am just wondering if there is a formula to archive the same goal ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Suggestions are welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2010 16:18:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-08T16:18:22Z</dc:date>
    <item>
      <title>Spread a sum over time</title>
      <link>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233495#M85032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe somebody of you has an idea regarding a problem of mine i want to solve in qlikview.&lt;/P&gt;&lt;P&gt;I want to make an report about crm data. I have an opportunity with a potential sales volume. I also have a date when we make the delivery for this opportunity. In real life thought, not all of the sales volume is delivered at once, but in smaller parts over a period of time.&lt;/P&gt;&lt;P&gt;So i need volume (1000), delivery Date 01.01.2010&lt;/P&gt;&lt;P&gt;-&amp;gt; 01.01 333.33&lt;/P&gt;&lt;P&gt;-&amp;gt;01.02 333.333&lt;/P&gt;&lt;P&gt;-&amp;gt;01.03 333.33&lt;/P&gt;&lt;P&gt;I found a way to do it in the script by using a for loop.&lt;/P&gt;&lt;P&gt;I am just wondering if there is a formula to archive the same goal ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Suggestions are welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 16:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233495#M85032</guid>
      <dc:creator />
      <dc:date>2010-02-08T16:18:22Z</dc:date>
    </item>
    <item>
      <title>Spread a sum over time</title>
      <link>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233496#M85033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabian,&lt;/P&gt;&lt;P&gt;do you try to split all sales volumes over three days or how does it work?&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 10:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233496#M85033</guid>
      <dc:creator />
      <dc:date>2010-02-11T10:29:34Z</dc:date>
    </item>
    <item>
      <title>Re. :Spread a sum over time</title>
      <link>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233497#M85034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is your values always divided over 3 months ? If that's the case, why don't you use the &lt;STRONG&gt;ABOVE&lt;/STRONG&gt; function ?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ex:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You use a field "D" that you want to sum and divide over time. Your dimension is, for example, the month (MonthName).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I suggest this expression:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= Rangesum( Above( Sum(D) / 3, 0, 3 ) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here, the Above function will calculate the Sum of every 3 preceding months (the current one, plus 2 others). It will return 3 values.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Rangesum function will then sum these 3 values to obtain the desired delivery value.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if it's what you wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Franck SEREGAZA&lt;/P&gt;&lt;P&gt;Business &amp;amp; Decision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233497#M85034</guid>
      <dc:creator>fseregaza</dc:creator>
      <dc:date>2010-02-11T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re. :Spread a sum over time</title>
      <link>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233498#M85035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an interesting point, i will give it a try.&lt;/P&gt;&lt;P&gt;The period is not fixed to 3 Month, i was just an example, but i will try to use a variable to make a datediff between start of deleviery and expected end of delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frank, thanks for the Input, i completly forgot about rangesum &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Spread-a-sum-over-time/m-p/233498#M85035</guid>
      <dc:creator />
      <dc:date>2010-02-11T12:27:56Z</dc:date>
    </item>
  </channel>
</rss>

