<?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 Select all previous months in a Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898593#M530557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a graph linked to a calendar: when I select a Month, the graph displays the information related to this month. Is there a way to show all the data of the previous months in the same year (as if I had selected at once all the previous months in the calendar) by selecting only ONE month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate it if there was an easy way to switch between the two type of calendars (one which displays only current month and another which displays all previous months).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 12:00:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-07T12:00:37Z</dc:date>
    <item>
      <title>Select all previous months in a Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898593#M530557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a graph linked to a calendar: when I select a Month, the graph displays the information related to this month. Is there a way to show all the data of the previous months in the same year (as if I had selected at once all the previous months in the calendar) by selecting only ONE month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate it if there was an easy way to switch between the two type of calendars (one which displays only current month and another which displays all previous months).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898593#M530557</guid>
      <dc:creator />
      <dc:date>2015-07-07T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select all previous months in a Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898594#M530558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use set analysis, something like (Month is the calendar month field, Date the calendar date field)&lt;/P&gt;&lt;P&gt;this is the sum of v from the start of the year (YearStart) to the end of previous month (MonthStart -1 day)&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Month=,Date={"&amp;gt;=$(=(YearStart(max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date&lt;/SPAN&gt;))))&amp;lt;=$(=date(MonthStart(max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date&lt;/SPAN&gt;))-1))"}&amp;gt;} &lt;V&gt;)&lt;/V&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to switch&lt;/P&gt;&lt;P&gt;you can use a button and 2 expression (conditional), one for one month one for the months&amp;nbsp; &lt;/P&gt;&lt;P&gt;or you can group the expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 17:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898594#M530558</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-07T17:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select all previous months in a Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898595#M530559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help but it doesn't work: this formula gives me the sum of all the data since the start of the calendar (1987) regardless of the selected date on the calendar. What I want is the sum of all the data of the selected year from the first month to the selected month (if I select May 2014 I want all the data from the first of January to May 2015).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I solved the problem I modified your expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Year = {$(=Year)}, Month = {"&amp;lt;=$(=num(Month))"}&amp;gt;} variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 07:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-all-previous-months-in-a-Calendar/m-p/898595#M530559</guid>
      <dc:creator />
      <dc:date>2015-07-08T07:44:29Z</dc:date>
    </item>
  </channel>
</rss>

