<?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 Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables/m-p/392467#M569371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a chart that has the following data, 'Current Week, 'Previous Week' and 'Next Week'. I have been able to create a simple variable for the current week and can do the same for previous and next week however I want the user to simply type into an Input Box the current week and then this will in turn show the previous and next weeks worth of data. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week 1 - 5&lt;/P&gt;&lt;P&gt;Week 2 - 6&lt;/P&gt;&lt;P&gt;Week 3 - 9&lt;/P&gt;&lt;P&gt;Week 4 - 16&lt;/P&gt;&lt;P&gt;Week 5 - 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the used typed in Week 3 into the Input Box I want them to see Week 2 (Previous Week), Week 3 (Current Week) and Week 4 (Next Week). Unless I have missed something I can't figure this one out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ralph &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 15:03:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-01T15:03:28Z</dc:date>
    <item>
      <title>Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/392467#M569371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a chart that has the following data, 'Current Week, 'Previous Week' and 'Next Week'. I have been able to create a simple variable for the current week and can do the same for previous and next week however I want the user to simply type into an Input Box the current week and then this will in turn show the previous and next weeks worth of data. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week 1 - 5&lt;/P&gt;&lt;P&gt;Week 2 - 6&lt;/P&gt;&lt;P&gt;Week 3 - 9&lt;/P&gt;&lt;P&gt;Week 4 - 16&lt;/P&gt;&lt;P&gt;Week 5 - 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the used typed in Week 3 into the Input Box I want them to see Week 2 (Previous Week), Week 3 (Current Week) and Week 4 (Next Week). Unless I have missed something I can't figure this one out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ralph &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/392467#M569371</guid>
      <dc:creator />
      <dc:date>2012-11-01T15:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/392468#M569373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this..&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Week={$(=vInput),$(=(vInput+1)),$(=(vInput-1))}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/392468#M569373</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-11-01T15:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/392469#M569374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13517828165678165" jivemacro_uid="_13517828165678165"&gt;&lt;P&gt;sum({&amp;lt;Week = {$(=w-1)}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Week = {$(w)}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Week = {$(=w+1)}&amp;gt;}Amount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/100292"&gt;Vegar Lie Arntsen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QlikView consultant at &lt;/EM&gt;&lt;A href="http://www.egbs.se"&gt;egbs consulting ab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Blog (in Swedish):&lt;/EM&gt; &lt;A href="http://bi-effekten.se"&gt;bi-effekten.se&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/392469#M569374</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2012-11-01T15:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/392470#M569375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant, thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/392470#M569375</guid>
      <dc:creator />
      <dc:date>2012-11-01T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/392471#M569378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/392471#M569378</guid>
      <dc:creator />
      <dc:date>2012-11-01T15:26:06Z</dc:date>
    </item>
  </channel>
</rss>

