<?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: Last Two Months data on selection of Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70162#M11575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you created all this to be able to get back two months ? I Mean all this approach is created specifically only to get back two months ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because you have Addmonths() function which is easier in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 09:47:13 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2018-02-22T09:47:13Z</dc:date>
    <item>
      <title>Last Two Months data on selection of Month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70161#M11574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm facing issue while trying to show last two month results on selection of any month in Straight Table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have declared below variables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VCurrentMonthM2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if((vMax2)=1,'Jan',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=2,'Feb',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=3,'Mar',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=4,'Apr',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=5,'May',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=6,'Jun',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=7,'Jul',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=8,'Aug',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=9,'Sep',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=10,'Oct',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=11,'Nov',&lt;/P&gt;&lt;P&gt;if((&lt;/P&gt;&lt;P&gt;vMax2)=12,'Dec',&lt;/P&gt;&lt;P&gt;''))))))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VCurrentMonthM1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=month(date(monthname(Date(if(isnull(GetFieldSelections(CommonMonth)),'&amp;nbsp; ' ,max(CommonDate))))-1))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VMax2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(isnull(GetFieldSelections(CommonMonth)),'',month(max(CommonDate))-2)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;In Label i used:&lt;/STRONG&gt; =vCurrentMonthM2&amp;amp;' ' &amp;amp;year&amp;amp;' '&amp;amp; 'Transactions Handled'&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and Expression for label is: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Common Ticket Type]={'INCIDENT'},[Common U_Cancelled] ={'-1'},CommonYear=,CommonMonth={$(vCurrentMonthM2)},CommonDays=,&amp;nbsp; [Common Priority]={'Priority-1'},&amp;nbsp; [Common Report_Customer]={'-1'},[Common Category_filter]={'-1'},[Common Summary_filter]={'-1'},&amp;nbsp; ResolvedTicket.isTicketOpen={'0'}&amp;gt;}ResolvedTicket.TicketID)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When i am selecting Dec Month i can see Previous 2 month Nov and Oct months Data.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Issue is when i am selecting Jan Month for year 2018 then i am able to see only Previous month Data i.e, Dec 2017 and not getting Nov Month's Data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 09:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70161#M11574</guid>
      <dc:creator>khajafareed</dc:creator>
      <dc:date>2018-02-22T09:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last Two Months data on selection of Month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70162#M11575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you created all this to be able to get back two months ? I Mean all this approach is created specifically only to get back two months ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because you have Addmonths() function which is easier in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 09:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70162#M11575</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-02-22T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last Two Months data on selection of Month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70163#M11576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I need to get back two months based on current selection of Month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 10:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70163#M11576</guid>
      <dc:creator>khajafareed</dc:creator>
      <dc:date>2018-02-22T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Last Two Months data on selection of Month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70164#M11577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok so you can simply do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If don't already have Master Calendar with MonthYear field, Create a &lt;STRONG&gt;MonthYear&lt;/STRONG&gt; field (MMYYYY format)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use this set analysis part (to replace it on your expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;{&amp;lt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;MonthYear={"&amp;gt;=$(=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date(AddMonths(Date#(&lt;SPAN style="font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/SPAN&gt;,'MMYYYY'),-2),'MMYYYY')&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;lt;=$(&lt;/SPAN&gt;=Date(Date#(&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/SPAN&gt;,'MMYYYY'),'MMYYYY')&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;)"&lt;/SPAN&gt; }&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;you will have this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Count({$&amp;lt;[Common Ticket Type]={'INCIDENT'},[Common U_Cancelled] ={'-1'},CommonYear=,MonthYear=&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;{&amp;lt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;MonthYear={"&amp;gt;=$(=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date(AddMonths(Date#(&lt;SPAN style="font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/SPAN&gt;,'MMYYYY'),-2),'MMYYYY')&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;lt;=$(&lt;/SPAN&gt;=Date(Date#(&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/SPAN&gt;,'MMYYYY'),'MMYYYY')&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;)"&lt;/SPAN&gt; }&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;,CommonDays=,&amp;nbsp; [Common Priority]={'Priority-1'},&amp;nbsp; [Common Report_Customer]={'-1'},[Common Category_filter]={'-1'},[Common Summary_filter]={'-1'},&amp;nbsp; ResolvedTicket.isTicketOpen={'0'}&amp;gt;}ResolvedTicket.TicketID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 10:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Two-Months-data-on-selection-of-Month/m-p/70164#M11577</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-02-22T10:23:19Z</dc:date>
    </item>
  </channel>
</rss>

