<?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 Expand selection in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198062#M57497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to have a chart that displays the sales for the selected and the five prior months.&lt;/P&gt;&lt;P&gt;I have created two varibles that selects the first month I want to display, for example, if I select 5 the varible holds the number 12. The second varible holds the year for the first month I want to display.&lt;/P&gt;&lt;P&gt;The problem is that I dont know how to tell QV to select the dates in between the selected month and the month that the varible is holding.&lt;/P&gt;&lt;P&gt;Example: If I select Year 2011 and month 5 I want the chart to look like this:&lt;/P&gt;&lt;P&gt;Year Month Sales&lt;/P&gt;&lt;P&gt;2010 12 10&lt;/P&gt;&lt;P&gt;2011 1 15&lt;/P&gt;&lt;P&gt;2011 2 25&lt;/P&gt;&lt;P&gt;2011 3 30&lt;/P&gt;&lt;P&gt;2011 4 10&lt;/P&gt;&lt;P&gt;2011 5 50&lt;/P&gt;&lt;P&gt;I have included a sample file.&lt;/P&gt;&lt;P&gt;Maybe I'm making this a bit complicated for myself? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 12:16:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-05T12:16:58Z</dc:date>
    <item>
      <title>Expand selection in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198062#M57497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to have a chart that displays the sales for the selected and the five prior months.&lt;/P&gt;&lt;P&gt;I have created two varibles that selects the first month I want to display, for example, if I select 5 the varible holds the number 12. The second varible holds the year for the first month I want to display.&lt;/P&gt;&lt;P&gt;The problem is that I dont know how to tell QV to select the dates in between the selected month and the month that the varible is holding.&lt;/P&gt;&lt;P&gt;Example: If I select Year 2011 and month 5 I want the chart to look like this:&lt;/P&gt;&lt;P&gt;Year Month Sales&lt;/P&gt;&lt;P&gt;2010 12 10&lt;/P&gt;&lt;P&gt;2011 1 15&lt;/P&gt;&lt;P&gt;2011 2 25&lt;/P&gt;&lt;P&gt;2011 3 30&lt;/P&gt;&lt;P&gt;2011 4 10&lt;/P&gt;&lt;P&gt;2011 5 50&lt;/P&gt;&lt;P&gt;I have included a sample file.&lt;/P&gt;&lt;P&gt;Maybe I'm making this a bit complicated for myself? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 12:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198062#M57497</guid>
      <dc:creator />
      <dc:date>2011-04-05T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Expand selection in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198063#M57498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion is for you to add a new field to hold the date of the month (I used MakeDate(Year, Month) to create a date representing the 1st of the month). Use this field in your set and then you can manipulate it easier using AddMonths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=Sum ({$&amp;lt;Month=,Year=,MonthDate={"&amp;gt;$(=AddMonths(max(MonthDate),-6))&amp;lt;=$(=max(MonthDate))"}&amp;gt;}Sales)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 13:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198063#M57498</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-04-05T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Expand selection in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198064#M57499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this first thing thursday when I get back to work.&lt;/P&gt;&lt;P&gt;Again, thanks alot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 14:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198064#M57499</guid>
      <dc:creator />
      <dc:date>2011-04-05T14:41:55Z</dc:date>
    </item>
    <item>
      <title>Expand selection in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198065#M57500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works great, thanks alot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 13:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-selection-in-set-analysis/m-p/198065#M57500</guid>
      <dc:creator />
      <dc:date>2011-04-07T13:13:03Z</dc:date>
    </item>
  </channel>
</rss>

