<?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: Rolling values in Load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526763#M747869</link>
    <description>&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;I wanted to make it dynamic. For instance, if user wants 3months rolling then i will calculate for 3 months, if user wants 5months then i will use for 5months.&lt;/P&gt;&lt;P&gt;in the front end ,i can use this formula. So here 3 can be made as variable and by changing this variable,i can calculate accordingly.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RangeSum (Above(FieldName,0,3))&lt;/PRE&gt;&lt;P&gt;But how do we achieve the same in load script?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 01:06:15 GMT</pubDate>
    <dc:creator>sathish_kumar</dc:creator>
    <dc:date>2019-01-07T01:06:15Z</dc:date>
    <item>
      <title>Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526727#M747865</link>
      <description>&lt;P&gt;Hello Users,&lt;/P&gt;&lt;P&gt;I am trying to calculate the rolling values for n period.&lt;/P&gt;&lt;P&gt;I am using below code to calculate rolling but is there any way to do only rolling 3 or 4 or 5 months?&lt;/P&gt;&lt;PRE&gt;if(Product=previous(Product), rangesum(Amount, peek(Rolling)),Amount) as Rolling&lt;/PRE&gt;&lt;P&gt;Attached excel sheet is the expected output&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;TD&gt;Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&l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t;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01-07-2019&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;TD&gt;87&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01-08-2019&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01-09-2019&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01-10-2019&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01-11-2019&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01-12-2019&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526727#M747865</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2024-11-16T21:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526730#M747866</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Sales:
LOAD Product, 
     Period, 
     Amount, 
     Output
FROM
Cumalative.xlsx
(ooxml, embedded labels);

Sales_1:
LOAD Product,
	 Period,
	 Amount,
	 RangeSum(If(Product = Previous(Previous(Product)), Previous(Previous(Amount))),&lt;BR /&gt;                  If(Product = Previous(Product), Previous(Amount)),&lt;BR /&gt;                  Amount) as Rolling
Resident Sales
Order by Product, Period desc;

DROP Table Sales;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Jan 2019 15:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526730#M747866</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-06T15:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526731#M747867</link>
      <description>&lt;P&gt;Thanks Sunny.&amp;nbsp;&lt;BR /&gt;Is there any other alternate way of doing this?&lt;/P&gt;&lt;P&gt;It will be bit tedious to calculate rolling for 5 months or 7months&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 15:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526731#M747867</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2019-01-06T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526738#M747868</link>
      <description>&lt;P&gt;In that case, I would say you can use&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;The As Of Table&lt;/A&gt;... this can give you a partial script solution... or you can left join the As Of Table into your main table and then use Group by to do what you want. Regardless of what you do... it might all be a little tedious.... I guess you are in the wrong profession if you are afraid of writing a little tedious script ;).&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 15:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526738#M747868</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-06T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526763#M747869</link>
      <description>&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;I wanted to make it dynamic. For instance, if user wants 3months rolling then i will calculate for 3 months, if user wants 5months then i will use for 5months.&lt;/P&gt;&lt;P&gt;in the front end ,i can use this formula. So here 3 can be made as variable and by changing this variable,i can calculate accordingly.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RangeSum (Above(FieldName,0,3))&lt;/PRE&gt;&lt;P&gt;But how do we achieve the same in load script?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 01:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526763#M747869</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2019-01-07T01:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526767#M747870</link>
      <description>&lt;P&gt;Before I can answer, I would like to know how are you planning to pass the user input to the script?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 01:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526767#M747870</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-07T01:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526861#M747871</link>
      <description>&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;In the front end, i am able to achieve by defining "vRolling" as variable and use the same in the chart expression.&lt;/P&gt;&lt;P&gt;Need to achieve the same in load script.&lt;/P&gt;&lt;PRE&gt;RangeSum (Above(Amount,0,vRolling))&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3143i8D2F14A7ED08BCD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 08:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526861#M747871</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2019-01-07T08:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526868#M747872</link>
      <description>&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;Firstly I want to say that it's better to solve it in front-end like what you do, create a variable and input box.&lt;/P&gt;&lt;P&gt;Because even achieve this in back-end, the variable will be useless, because even user change it, you have calculate it on back-end, the value won't be change. So I don't know why you want to do it in back-end.&lt;/P&gt;&lt;P&gt;But anyway, it really takes me a lot of hours to try to solve that. I created a variable in the back-end, if you want to change to 5/7 month, you need to change the variable, but user can not do that I think.&lt;/P&gt;&lt;P&gt;Aiolos Zhao&lt;/P&gt;&lt;P&gt;Or what you want is even user change the variable in front-end, the value will be change? I think it's not possible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rolling values in Load script.PNG" style="width: 248px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3146i5EBF259A1BFAA603/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rolling values in Load script.PNG" alt="Rolling values in Load script.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 08:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1526868#M747872</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-01-07T08:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527028#M747873</link>
      <description>&lt;P&gt;So, once the variable is changed, your user will trigger a reload? Is this app sitting on QMC or is this for a user locally? I am just trying to understand the reason behind making this difficult by doing it in the script and asking the user to reload if this can be done with RangeSum(Above()) or using&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;The As Of Table&lt;/A&gt;. Have you read about The As Of Table yet? May be if you have not, this might be the best solution for you?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 12:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527028#M747873</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-07T12:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527091#M747874</link>
      <description>&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;It will be done locally.Yes i did read about 'as of' table. It will solve my purpose partly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about the one below. I load two tables Table 1 and Table 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 will have column called ROLLING, which will calculate based on the values defined in Table 1?&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Rolling&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/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t;01-01-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-02-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-03-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-04-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-05-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-06-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not doing this in the front end because this is not the end state. Based on the above table , in the back end, I will be using calculated field for other calculations and then storing the table in csv using Store command.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527091#M747874</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2019-01-07T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527093#M747875</link>
      <description>Hey Thanks for your solution.&lt;BR /&gt;I am not doing this in the front end because this is not the end state. Once I solve the above issue in the back end, I will be using that particular table for other calculations and then storing the table in csv using Store command&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527093#M747875</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2019-01-07T13:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527112#M747876</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;Table2:
LOAD * INLINE [
    Date, Product, Amount
    01-01-2019, A, 5
    01-02-2019, A, 10
    01-03-2019, A, 15
    01-04-2019, A, 20
    01-05-2019, A, 25
    01-06-2019, A, 30
    01-01-2019, B, 1
    01-02-2019, B, 2
    01-03-2019, B, 3
    01-04-2019, B, 4
    01-05-2019, B, 5
    01-06-2019, B, 6
];

Left Join (Table2)
LOAD * INLINE [
    Product, Rolling
    A, 2
    B, 3
];

Left Join (Table2)
LOAD Date as AsOfDate,
	 Date(Date + IterNo() - 1) as Date,
	 Product,
	 IterNo() - 1 as Count
Resident Table2
While IterNo() &amp;lt;= Rolling;

FinalTable:
LOAD AsOfDate as Date,
	 Product,
	 Only(If(AsOfDate = Date, Amount)) as Amount,
	 Sum(Amount) as RollingAmount
Resident Table2
Group By AsOfDate, Product;

DROP Table Table2;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jan 2019 14:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527112#M747876</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-07T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527120#M747877</link>
      <description>Awesome Sunny. Thanks a lot</description>
      <pubDate>Mon, 07 Jan 2019 14:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-values-in-Load-script/m-p/1527120#M747877</guid>
      <dc:creator>sathish_kumar</dc:creator>
      <dc:date>2019-01-07T14:29:03Z</dc:date>
    </item>
  </channel>
</rss>

