<?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: Set Analysis for Line Chart that shows 2 previous before selection and 2 after selection in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276100#M103019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script, I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(right(Volume,4),subfield(right(Volume,7),'/')) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create a Date with a numerical representation, which allows it to use this as line chart expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date={"&amp;gt;=$(=addmonths(max(Date),-2))&amp;lt;=$(=addmonths(max(Date),2))"},Volume &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 22:37:40 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-12-02T22:37:40Z</dc:date>
    <item>
      <title>Set Analysis for Line Chart that shows 2 previous before selection and 2 after selection in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276099#M103018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to create a line chart and when I select on the volume list box I would like the line chart to show the previous two sales amounts before the selection, the selected value and the two sales amounts after the selection.&amp;nbsp; (A 2 prior / 2 post selection rolling report).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just can figure out the set analysis of how to include the selection -2 and +2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 22:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276099#M103018</guid>
      <dc:creator />
      <dc:date>2011-12-02T22:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Line Chart that shows 2 previous before selection and 2 after selection in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276100#M103019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script, I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(right(Volume,4),subfield(right(Volume,7),'/')) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create a Date with a numerical representation, which allows it to use this as line chart expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date={"&amp;gt;=$(=addmonths(max(Date),-2))&amp;lt;=$(=addmonths(max(Date),2))"},Volume &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 22:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276100#M103019</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-02T22:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Line Chart that shows 2 previous before selection and 2 after selection in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276101#M103020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 22:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Line-Chart-that-shows-2-previous-before/m-p/276101#M103020</guid>
      <dc:creator />
      <dc:date>2011-12-02T22:40:25Z</dc:date>
    </item>
  </channel>
</rss>

