<?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: Lockperiod in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001893#M944421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for ur reply in variable wat u declare,&lt;/P&gt;&lt;P&gt;VLockperiod=0,2,3 lik that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Dec 2015 05:38:24 GMT</pubDate>
    <dc:creator>ajsjoshua</dc:creator>
    <dc:date>2015-12-31T05:38:24Z</dc:date>
    <item>
      <title>Lockperiod</title>
      <link>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001891#M944419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to calculate the values using lockperiod.&lt;/P&gt;&lt;P&gt;Lockperiod=0,2,3 but i am using this formula&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;Year = {$(=max(Year))},MonthID={$(=Max(MonthID)+Lockperiod&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)},Quarter=,Month=,Year=&amp;gt;} Arrivals),0.00).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Its not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I also tried by using variable but its working working for a specific lockperiod&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Vlockperiod=2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=num(sum({$&amp;lt;Year = {$(=max(Year))},MonthID={$(=Max(MonthID)+Vlockperiod&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)},Quarter=,Month=,Year=&amp;gt;} Arrivals),0.00).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;But i want to calculate for all lock period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 06:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001891#M944419</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2015-12-30T06:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lockperiod</title>
      <link>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001892#M944420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your +Lockperiod won't add further values to the dataset it will be interpreted as aggregation like a+b. Therefore try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;Year = {"$(=max(Year))"},MonthID={"$(=Max(MonthID))", $(VLockperiod&lt;SPAN style="font-size: 10pt;"&gt;)} &amp;gt;} Arrivals),0.00)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This &lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Quarter=,Month=,Year=&lt;/STRONG&gt; &lt;/SPAN&gt;is removed then it made no sense in a expression which determined excactly which periods should be calculated. Further I'm not sure if not something like this is enough if you have a unique MonthID for each monthly period:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=num(sum({$&amp;lt; MonthID={$(VLockperiod&lt;SPAN style="font-size: 10pt;"&gt;)} &amp;gt;} Arrivals),0.00)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 10:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001892#M944420</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-30T10:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lockperiod</title>
      <link>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001893#M944421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for ur reply in variable wat u declare,&lt;/P&gt;&lt;P&gt;VLockperiod=0,2,3 lik that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joshua.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001893#M944421</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2015-12-31T05:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lockperiod</title>
      <link>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001894#M944422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try if you get with manually entries your expected result: &lt;SPAN style="font-size: 10pt;"&gt;num(sum({$&amp;lt; MonthID={0,2,3&lt;SPAN style="font-size: 10pt;"&gt;} &amp;gt;} Arrivals),0.00). If yes go further and use a table-chart without a label for the expression with a variable which contained these 0,2,3 - within the label you could see how qlikview interpreted all parts of your expression.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 10:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001894#M944422</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-31T10:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lockperiod</title>
      <link>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001895#M944423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for ur Reply.&lt;/P&gt;&lt;P&gt;Happy New Year wish u a great year ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JOSHUA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 05:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lockperiod/m-p/1001895#M944423</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2016-01-02T05:08:35Z</dc:date>
    </item>
  </channel>
</rss>

