<?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: Max(Month) not working in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140653#M521701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you create a new field in the script like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Month(Date)) as MonthNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use that in your set analysis?&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;Sum({&amp;lt;MonthNum = {$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthNum&lt;/SPAN&gt;))}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Also check if Max(Month) in text box gives you 3. If month only is month and doesn't contain Year and you have more than 1 years you might get a 12 in which case the set analysis will give a different result compared to Mar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 09:53:08 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-13T09:53:08Z</dc:date>
    <item>
      <title>Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140652#M521700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Hi All&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;I am facing Set Analysis issue in Qlikview 11.2 v&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;The issue is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;I have to show the total sum in the set expression for the last month from date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Eg: I have data for some days ( the dates may be from Jan, Feb, Mar), i have to display the data based last month. As of now we got 3 months data in future there may be a chance to increase. I used static value in set expression like below, it worked, but when I place dynamic expression it's not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;The below one works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Static: sum({&amp;lt;Month={"Mar"}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;The below one not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Dynamic : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;sum({&amp;lt;Month={$(=Max(Month))}&amp;gt;}sales)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Can any one help me to solve this&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140652#M521700</guid>
      <dc:creator />
      <dc:date>2016-05-13T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140653#M521701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you create a new field in the script like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Month(Date)) as MonthNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use that in your set analysis?&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;Sum({&amp;lt;MonthNum = {$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthNum&lt;/SPAN&gt;))}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Also check if Max(Month) in text box gives you 3. If month only is month and doesn't contain Year and you have more than 1 years you might get a 12 in which case the set analysis will give a different result compared to Mar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140653#M521701</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T09:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140654#M521702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, you can try this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthNum = {$(=&lt;SPAN style="color: #ff0000;"&gt;MaxString&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MonthNum&lt;/SPAN&gt;))}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140654#M521702</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140655#M521703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you have created the Month in your script? if it is created using Month function in the script then this should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140655#M521703</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-13T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140656#M521704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;I derived the month from date&lt;/P&gt;&lt;P class=""&gt;Month(pl_date) as Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140656#M521704</guid>
      <dc:creator />
      <dc:date>2016-05-13T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140657#M521705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then try this&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;=sum({&amp;lt;Month={&lt;STRONG&gt;"&lt;/STRONG&gt;$(=Max(Month))&lt;STRONG&gt;"&lt;/STRONG&gt;}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140657#M521705</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-13T10:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140658#M521706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Sunny,&lt;/P&gt;&lt;P class=""&gt;It's working.&lt;/P&gt;&lt;P class=""&gt;Thanks for your immediate response&lt;/P&gt;&lt;P class=""&gt;Thanks alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140658#M521706</guid>
      <dc:creator />
      <dc:date>2016-05-13T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140659#M521707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Thanks you Guys for your un believeble support&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks&lt;/P&gt;&lt;P class=""&gt;AR UMAMAHESH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140659#M521707</guid>
      <dc:creator />
      <dc:date>2016-05-13T10:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140660#M521708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Sunny, Can this logic works for before last month&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Ex: For Feb&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Sum({1&amp;lt;Month={$(=MaxString(Month)-1)}&amp;gt;}sales)&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;For Jan&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;Sum({1&amp;lt;Month={$(=MaxString(Month)-2)}&amp;gt;}sales)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140660#M521708</guid>
      <dc:creator />
      <dc:date>2016-05-13T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140661#M521709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;I tried these but not works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140661#M521709</guid>
      <dc:creator />
      <dc:date>2016-05-13T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140662#M521710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Feb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-decoration: line-through;"&gt;&lt;STRONG&gt;Sum({1&amp;lt;Month={$(=MaxString(Month, 2))}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Jan&lt;/SPAN&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 style="text-decoration: line-through;"&gt;Sum({1&amp;lt;Month={$(=MaxString(Month, 3))}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad, these won't work. I am checking &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 May 2016 10:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140662#M521710</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T10:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140663#M521711</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;try like &lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month={$(=Month(max(Month)-1))}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140663#M521711</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-13T10:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140664#M521712</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;or try&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;sum({&amp;lt;Month={$(=Month(AddMonths(max(Month),-1)))}&amp;gt;}sales)&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140664#M521712</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-13T10:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140665#M521713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Not working Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140665#M521713</guid>
      <dc:creator />
      <dc:date>2016-05-13T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140666#M521714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feb:&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;Sum({1&amp;lt;Month={$(&lt;SPAN style="font-size: 13.3333px;"&gt;=Month(AddMonths(Date#(MaxString(Month), 'MMM'), -1))&lt;/SPAN&gt;)}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&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;Sum({1&amp;lt;Month={$(&lt;SPAN style="font-size: 13.3333px;"&gt;=Month(AddMonths(Date#(MaxString(Month), 'MMM'), -2))&lt;/SPAN&gt;)}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140666#M521714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T10:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140667#M521715</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;I know i missed addmonths()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which i have added in other suggestion.&lt;/P&gt;&lt;P&gt;check that work or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140667#M521715</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-13T10:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140668#M521716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;The Magic of Set Analysis - Point In Time Reporting • Blog • AfterSync&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on how to create set analysis to analyze certain points or periods in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also explains in detail how you could create the fields in script necessary to make the set analysis work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Also useful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2830"&gt;Data Types in QlikView&lt;/A&gt;&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 May 2016 10:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140668#M521716</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-13T10:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140669#M521717</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;I think in one of his reply he told us that he using month() to evaluate month field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we don't need to use Date#().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140669#M521717</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-13T10:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140670#M521718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you compare this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;=Month(AddMonths(Date#(MaxString(Month), 'MMM'), -1))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs.&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;=Month(AddMonths(max(Month),-1))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a text box, you will see a difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140670#M521718</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T10:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Month) not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140671#M521719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="124517" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124517_Capture.PNG" style="height: 219px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not saying, the expression I provided is the best, but it seems to do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, I really think the situation warrants for use of Num(Month(Date)) as MonthNum in script. This will make life so much easier for the OP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: or a counter on &lt;STRONG&gt;Month-Year&lt;/STRONG&gt; function would be ideal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-not-working-in-Set-Analysis/m-p/1140671#M521719</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T10:56:54Z</dc:date>
    </item>
  </channel>
</rss>

