<?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: Current selection plus the last 6 months in Line Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345100#M414023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this? I assume, You have Neat Date Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;COUNT({$&amp;lt;aaa= {'xxx',''}, DateField = {"&amp;gt;= $(=Date(AddMonths(Max(DateField),-6))) &amp;lt;=$(=Date(Max(DateField)))"}&amp;gt;} aaa) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 15:38:04 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-06-22T15:38:04Z</dc:date>
    <item>
      <title>Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345099#M414022</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;&lt;/P&gt;&lt;P&gt;I need to create a Line Chart where I would like to show the current selection and the last months too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;aaa= {'xxx',''}&amp;gt;} aaa) i used this for the current selection but I would like to display the data for the&amp;nbsp; last 6 months too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constantin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345099#M414022</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2017-06-22T15:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345100#M414023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this? I assume, You have Neat Date Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;COUNT({$&amp;lt;aaa= {'xxx',''}, DateField = {"&amp;gt;= $(=Date(AddMonths(Max(DateField),-6))) &amp;lt;=$(=Date(Max(DateField)))"}&amp;gt;} aaa) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345100#M414023</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-22T15:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345101#M414024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide more info or some sample data?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is the current selection also the date?&amp;nbsp; So you want all date from the currently selected date back 6 months?&lt;/P&gt;&lt;P&gt;Or some other dimension?&amp;nbsp; If some other dimension do you want that selection PLUS the last 6 months ignoring the selection? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345101#M414024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T15:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345102#M414025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The current selection are year and months.&lt;/P&gt;&lt;P&gt;I want to select them and after my line chart to show&amp;nbsp; me the selection like year 2017 and month june plus 6 previews months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 20:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345102#M414025</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2017-06-22T20:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345103#M414026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I think you need something very similar to what Anil provided.&amp;nbsp; Assuming you have a DateField too.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;YourYearField=,YourMonthField=, DateField = {"&amp;gt;= $(=Date(AddMonths(Max(DateField),-6))) &amp;lt;=$(=Date(Max(DateField)))"}&amp;gt;} aaa)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 20:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345103#M414026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T20:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345104#M414027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the above code I achieved this, which is wrong&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167897_Capture.PNG" style="height: auto;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 09:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345104#M414027</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2017-06-23T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345105#M414028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your answer but the above code doesn't work for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created 2 columns like:&lt;/P&gt;&lt;P&gt;monthname(OrderDate) as CalendarPeriod&lt;/P&gt;&lt;P&gt;num(MonthName([&lt;SPAN style="font-size: 13.3333px;"&gt;OrderDate&lt;/SPAN&gt;))&amp;nbsp; AS CalendarPeriodnum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plus I added this code to my expression :&lt;/P&gt;&lt;P&gt;count({$&amp;lt;aaa= {'xxx',''}, CalendarPeriodnum={'&amp;gt;= $(=num(MonthStart(AddMonths(max(CalendarPeriod),-5)))) &amp;lt;= $(=num(MonthEnd(max(CalendarPeriod))))'},D_InvCal.CalendarMonth=,D_InvCal.CalendarYear=&amp;gt;}aaa)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is if I select year 2017 the data in line chart is not organised in the right position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please&amp;nbsp; check below. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167898_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 09:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345105#M414028</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2017-06-23T09:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current selection plus the last 6 months in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345106#M414029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help.&amp;nbsp; I managed to fix the problem. I changed the dimension to be monthyear and now all is ok.&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 10:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-selection-plus-the-last-6-months-in-Line-Chart/m-p/1345106#M414029</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2017-06-23T10:01:50Z</dc:date>
    </item>
  </channel>
</rss>

