<?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: Getting Last 3 months on Year Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245236#M860424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Showing MonthYear which is &lt;STRONG&gt;&amp;gt;= Max(MonthYear) - 2 months &lt;/STRONG&gt;and &lt;STRONG&gt;&amp;lt;= Max(MonthYear)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2017 14:57:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-13T14:57:35Z</dc:date>
    <item>
      <title>Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245229#M860417</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;Consider Year field and i have 3 years 2015,2016,2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month field has all the 12 months for those 3 years (2017 has only January)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select Year 2017, it should display max month from that year and last 2 months (i.e)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017 Jan&lt;/P&gt;&lt;P&gt;2016 Dec&lt;/P&gt;&lt;P&gt;2016 Nov.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is if i select 2017&lt;/P&gt;&lt;P&gt;Max month is Jan&lt;/P&gt;&lt;P&gt;Max month -1 is 0 ( it should be 2016 dec)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Max month -2 is -1 &lt;SPAN style="font-size: 13.3333px;"&gt;( it should be 2016 nov)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How do i get?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2017 Jan&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2016 Dec&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2016 Nov.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245229#M860417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245230#M860418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a particular chart or throughout the dashboard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a chart, I would suggest using set analysis&lt;/P&gt;&lt;P&gt;For the dashboard, you can may be use triggers (but use them with caution)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 12:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245230#M860418</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T12:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245231#M860419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a particular chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with Set analysis expression for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 12:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245231#M860419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T12:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245232#M860420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, what are your date and time related dimensions. Let say you have a field called Month Year which is created in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(TempDate), 'MMM-YYYY') as MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your set analysis should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;MonthYear = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(MonthYear), -2), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;Date(MonthStart(Max(MonthYear), 0), 'MMM-YYYY')&lt;/SPAN&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 12:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245232#M860420</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245233#M860421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also&amp;nbsp; included,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(MonthStart(TempDate), 'MMM-YYYY') as MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in my script&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please explain me how this expression works?&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 13:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245233#M860421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T13:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245234#M860422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It takes your date field for each row, find its Month starting date and then assign it a format of MMM-YYYY (Jan-2017 for example)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 13:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245234#M860422</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245235#M860423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. i asked about the set analysis expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;MonthYear = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(MonthYear), -2), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date(MonthStart(Max(MonthYear), 0), 'MMM-YYYY')&lt;/SPAN&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 14:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245235#M860423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245236#M860424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Showing MonthYear which is &lt;STRONG&gt;&amp;gt;= Max(MonthYear) - 2 months &lt;/STRONG&gt;and &lt;STRONG&gt;&amp;lt;= Max(MonthYear)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 14:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245236#M860424</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T14:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245237#M860425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 15:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245237#M860425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Last 3 months on Year Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245238#M860426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 15:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Last-3-months-on-Year-Selection/m-p/1245238#M860426</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T15:10:27Z</dc:date>
    </item>
  </channel>
</rss>

