<?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 Another Question regarding the date selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218816#M71881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tanel,&lt;/P&gt;&lt;P&gt;Amazing its exactly what I have expected, but when I apply all the settings as mentioned by you, this is what I see as in the image, Can you please suggest what could be wrong. Also as the product list is huge so I want to have a calculation condition when clicked on a button or something and, I want to limit the weeks selection for 3 for each Pre, Promo, Post can you help with the restriction conditions as mentioned here please. A BIG THANK YOU for your time and patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0363.LikeThis1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0363.LikeThis1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 13:03:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-17T13:03:01Z</dc:date>
    <item>
      <title>Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218797#M71862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;How do i write a Variable which allows me to select more than 1 week to sum up the sales. Currently I have created a variable and used it in the chart which allows me to input a number or select from drop down which calculates the sales, however I want to create a variable where i select 3 weeks, it should sum up the sales for 3 weeks instead of 1 week.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 10:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218797#M71862</guid>
      <dc:creator />
      <dc:date>2011-02-16T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218798#M71863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search on Forum "Create Master Calendar"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 10:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218798#M71863</guid>
      <dc:creator />
      <dc:date>2011-02-16T10:26:06Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218799#M71864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paco,&lt;/P&gt;&lt;P&gt;Appreciate your quick reply, however I have a calender which is working and the weeks derived out of it which is the solution to my problem but halfway. I want to know how to select more than one week in a variable to calculate the sales. I can do it with a multi box, but how can I use that as a variable value? If you read my original post may be this will give you more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 10:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218799#M71864</guid>
      <dc:creator />
      <dc:date>2011-02-16T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218800#M71865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you want to use a date range, you may check &lt;A href="http://community.qlik.com/media/p/143017.aspx" target="_blank" title="The Basics about Dates, Date Ranges and Set Analysis"&gt;this file&lt;/A&gt;. There are several other ways, though, for example using the Concat() function to return some values and use them in a set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vWeeks = Concat(DISTINCT Week, ','); Sum({&amp;lt; Week = {$(vWeeks)} &amp;gt;} Price)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 10:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218800#M71865</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T10:43:54Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218801#M71866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excuseme....&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;week={$(=GetFieldSelections(week)+GetFieldSelections(week)+1)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 10:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218801#M71866</guid>
      <dc:creator />
      <dc:date>2011-02-16T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218802#M71867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel and Paco,&lt;/P&gt;&lt;P&gt;Thank you for both the responses, but I am unsure as to how this can fit my requirement. So I have attached a image of what I am trying to deliver if that give you more information, I tried attaching a sample QVW but due to restrictions here I cannot do it, but can send this image. Please take a look and suggest whats the best approach to achieve it.&lt;/P&gt;&lt;P&gt;Andy&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3515.LikeThis1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3515.LikeThis1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218802#M71867</guid>
      <dc:creator />
      <dc:date>2011-02-16T12:10:46Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218803#M71868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andy,&lt;/P&gt;&lt;P&gt;If I understand that correctly, that's not possible since a variable can store only one value. If you want a range, then you need a slider/calendar object, where you can store the starting week in a variable and the end week in a different variable, and the range will be the list of possible values between both. An inputbox doesn't allow you to select more than one value.&lt;/P&gt;&lt;P&gt;If the Inputbox is a requirement, then you will have to create two variables for each possible week (Pre Promotion Start Week, Pre Promotion End Week, and so).&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218803#M71868</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218804#M71869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel,&lt;/P&gt;&lt;P&gt;I dont know how it works, but 3 sliders for 3 selections holding 53 weeks each... I think it wont be impressive...to look at...But how do i create 2 variables for each field From Week and To Week and start using that?? Can you help me more with that please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 14:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218804#M71869</guid>
      <dc:creator />
      <dc:date>2011-02-16T14:17:58Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218805#M71870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andy,&lt;/P&gt;&lt;P&gt;I think I didn't make myself clear. There are two options, first would be using sliders (one per date), second would be using two variables for each date type.&lt;/P&gt;&lt;P&gt;Please refer to the file I posted above, where you can see how this two variable per range approach works and how to implement in the charts.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 21:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218805#M71870</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T21:36:21Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218806#M71871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologise for taking so much of your time, But can you help me further with this? Now I have 1 variable and 1 value, say I will have 2 variables for From Week and To Week then how to change the expression which I have now like , what if i enter 3 in from week and 4 in to week ? I want to see the sales rev for this 2 weeks...&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;TIME_PERIOD_WEEK_NO = {'$(VPre)'}&amp;gt;}WK_SALES_GROSS_REV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 21:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218806#M71871</guid>
      <dc:creator />
      <dc:date>2011-02-16T21:43:43Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218807#M71872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using your expression, having a variable range, the most appropiate thing would be to get the dates those weeks are. You can use weeks in variables as ranges, either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; TIME_PERIOD_WEEK_NO = {'&amp;gt;=$(vWeekPreFrom)&amp;lt;=$(vWeekPreTo)'} &amp;gt;} WK_SALES_GROSS_REV)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 21:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218807#M71872</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T21:48:04Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218808#M71873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah Miguel, There you go you just hit the Bulls Eye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Looks like finally I achieved what I was trying to do. Thank you again for all the help and I wish I too have as much experience as you..so how much time did it take for you to gain this experience in QV?&lt;/P&gt;&lt;P&gt;Thanks by Heart and please keep posting and supporting new users like me.&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 22:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218808#M71873</guid>
      <dc:creator />
      <dc:date>2011-02-16T22:10:18Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218809#M71874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel,&lt;/P&gt;&lt;P&gt;Looks like the problem is back or rather I thought it was all over before comparing the numbers and have identified that its not correct. Can you please take a look at the image here. In one table I have 3 variables calculated separately and in other table I used the expression as suggested by you by creating another variable PreTo but the numbers show different the totals for the products highlighted dont match on both charts, which means the second one isnt doing what its supposed to do? Looks like the second chart shows the numbers as soon as I enter the From Week and nothing happens after the To value is entered. You think I am doing something worng here?&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6811.LikeThis1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6811.LikeThis1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 22:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218809#M71874</guid>
      <dc:creator />
      <dc:date>2011-02-16T22:34:34Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218810#M71875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to say without taking a look at the expression and dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 22:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218810#M71875</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T22:42:44Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218811#M71876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could send something but cannot and will try to explain, I have a product dimension (shows the name) and an expression as below using Variable for the first chart, which seems to be working fine. &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;sum&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;({$&amp;lt;&lt;B&gt;TIME_PERIOD_WEEK_NO&lt;/B&gt; = {&lt;B&gt;&lt;I&gt;'$(VPre)'&lt;/I&gt;&lt;/B&gt;}&amp;gt;}&lt;B&gt;WK_SALES_GROSS_REV&lt;/B&gt;) &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;And the second chart contains the same product dimension with the expression as suggested by you&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; TIME_PERIOD_WEEK_NO = {'&amp;gt;=$(VPreFrom)&amp;lt;=$(vPreTo)'} &amp;gt;} WK_SALES_GROSS_REV)&lt;/P&gt;&lt;P&gt;Hope this helps. In the second chart I was expecting to calculate the sum of sales for weeks 4-6 and if it did then the totals on both should match for one product.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 22:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218811#M71876</guid>
      <dc:creator />
      <dc:date>2011-02-16T22:52:18Z</dc:date>
    </item>
    <item>
      <title>Re:Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218812#M71877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that vPreFrom is written properly, QlikView is case sensitive.&lt;/P&gt;&lt;P&gt;Try to select manually in field TIME_PERIOD_WEEK_NO from vPreFrom to vPreTo and see whether that returns in the graph as expected.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 23:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218812#M71877</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T23:20:39Z</dc:date>
    </item>
    <item>
      <title>Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218813#M71878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to expand possibilities,&lt;BR /&gt;Another approach for "multiple value variables" is to load "island fields" that are not connected to any other fields.&lt;BR /&gt;And for dynamic number of columns it is possible to use pivot table.&lt;BR /&gt;&lt;BR /&gt;See this example: I have loaded three independent week fields for user selection (_WeekPre, _WeekPromo, _WeekPost)&lt;BR /&gt;Pivot table uses "normal" week and product dimensions and additional calculated dimension:&lt;BR /&gt;=ValueList('Pre','Promo','Post','Result')&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0878.PromoSample1.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x241/__key/CommunityServer.Discussions.Components.Files/11/0878.PromoSample1.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now expression uses SET syntax to return values for different week sets according to selection.&lt;BR /&gt;Nested if bock acts as pointer to ValueList dimension.&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(ValueList('Pre','Promo','Post','Result')='Pre',&lt;BR /&gt; num(sum({&amp;lt;Week=p(_WeekPre)&amp;gt;} Sales),'# ##0'),&lt;BR /&gt;if(ValueList('Pre','Promo','Post','Result')='Promo',&lt;BR /&gt; num(sum({&amp;lt;Week=p(_WeekPromo)&amp;gt;} Sales),'# ##0'),&lt;BR /&gt;if(ValueList('Pre','Promo','Post','Result')='Post',&lt;BR /&gt; num(sum({&amp;lt;Week=p(_WeekPost)&amp;gt;} Sales),'# ##0'),&lt;BR /&gt;num(sum({&amp;lt;Week=p(_WeekPost)&amp;gt;} Sales) / sum({&amp;lt;Week=p(_WeekPre)&amp;gt;} Sales) - 1,'# ##0%')&lt;BR /&gt;)))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Note that I also used format functions within expression, so the Sales is integer but Result is percentage (Chart properties &amp;gt; Number format is set to Expression default). &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 10:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218813#M71878</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2011-02-17T10:43:49Z</dc:date>
    </item>
    <item>
      <title>Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218814#M71879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tanel,&lt;/P&gt;&lt;P&gt;What you suggested definetly seems to be a solution for my problem here. Can you attach the QVW from where you have posted the above screen shot please?&lt;/P&gt;&lt;P&gt;Thanks a ton in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 11:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218814#M71879</guid>
      <dc:creator />
      <dc:date>2011-02-17T11:20:44Z</dc:date>
    </item>
    <item>
      <title>Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218815#M71880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I just experimented on another sales app (which is huge).&lt;/P&gt;&lt;P&gt;But I revealed almost every detail about this approach, I think you're cool to build it yourself. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;The script part is simply three tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;WeekPre:&lt;BR /&gt;load&lt;BR /&gt;rowno() as _WeekPre&lt;BR /&gt;AutoGenerate 52;&lt;BR /&gt;&lt;BR /&gt;WeekPromo:&lt;BR /&gt;load&lt;BR /&gt;rowno() as _WeekPromo&lt;BR /&gt;AutoGenerate 52;&lt;BR /&gt;&lt;BR /&gt;WeekPost:&lt;BR /&gt;load&lt;BR /&gt;rowno() as _WeekPost&lt;BR /&gt;AutoGenerate 52;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 11:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218815#M71880</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2011-02-17T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Another Question regarding the date selection</title>
      <link>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218816#M71881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tanel,&lt;/P&gt;&lt;P&gt;Amazing its exactly what I have expected, but when I apply all the settings as mentioned by you, this is what I see as in the image, Can you please suggest what could be wrong. Also as the product list is huge so I want to have a calculation condition when clicked on a button or something and, I want to limit the weeks selection for 3 for each Pre, Promo, Post can you help with the restriction conditions as mentioned here please. A BIG THANK YOU for your time and patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0363.LikeThis1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0363.LikeThis1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 13:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Another-Question-regarding-the-date-selection/m-p/218816#M71881</guid>
      <dc:creator />
      <dc:date>2011-02-17T13:03:01Z</dc:date>
    </item>
  </channel>
</rss>

