<?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(Num(Month([Date]))) is &amp;lt;NULL&amp;gt;? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295005#M828896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB_MaxMonth:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Month(Max([Date]))) as MaxMonth,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Month(Max([Date])))&lt;/SPAN&gt;-1=0,12,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Month(Max([Date])))&lt;/SPAN&gt;-1) as PreviousMonth&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Report;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMaxMonth = peek('&lt;SPAN style="font-size: 13.3333px;"&gt;TAB_MaxMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',&lt;/SPAN&gt;0,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MaxMonth'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vPreviousMonth = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;peek('&lt;SPAN style="font-size: 13.3333px;"&gt;TAB_MaxMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PreviousMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 18:36:55 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2017-06-28T18:36:55Z</dc:date>
    <item>
      <title>Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295004#M828895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering why when I try and make 2 variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxMonth = Max(Num(Month([Date])));&lt;/P&gt;&lt;P&gt;Let vPreviousMonth = If(Max(Num(Month([Date])))-1=0,12,Max(Num(Month([Date])))-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They both return Null Values.&lt;/P&gt;&lt;P&gt;When I checked the value of Max(Num(Month([Date]))) using a Temp table I saw it was returning a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if somebody can explain this to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming Month([Date]) is returning a Null but I have no idea why and how to remedy the issue so it returns the month number instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File Names omitted my script is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/DD/YY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/DD/YY hh:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=6;&lt;/P&gt;&lt;P&gt;SET BrokenWeeks=1;&lt;/P&gt;&lt;P&gt;SET ReferenceDay=0;&lt;/P&gt;&lt;P&gt;SET FirstMonthOfYear=1;&lt;/P&gt;&lt;P&gt;SET CollationLocale='en-CA';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report:&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is US);&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is EMEA);&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CANADA);&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is USA);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is EMEA);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CANADA);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CanadaApril);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is EMEAApril);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *,month(Date) as Month FROM [FILE]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is USA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Month([Date])) as MaxMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Max(num(month([Date])))-1=0,12,Max(num(month([Date])))-1) as PreviousMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Report;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMaxMonth = MaxMonth;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vPreviousMonth = PreviousMonth;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table Temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the concatenation it is due to later months having additional columns compared to the earlier months.&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/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295004#M828895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295005#M828896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB_MaxMonth:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Month(Max([Date]))) as MaxMonth,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Month(Max([Date])))&lt;/SPAN&gt;-1=0,12,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Month(Max([Date])))&lt;/SPAN&gt;-1) as PreviousMonth&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Report;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMaxMonth = peek('&lt;SPAN style="font-size: 13.3333px;"&gt;TAB_MaxMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',&lt;/SPAN&gt;0,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MaxMonth'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vPreviousMonth = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;peek('&lt;SPAN style="font-size: 13.3333px;"&gt;TAB_MaxMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;0,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PreviousMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295005#M828896</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-28T18:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295006#M828897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month,Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01/01/2017,100&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01/02/2017,200&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01/03/2017,150&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01/04/2017,200&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01/05/2017,320&lt;/P&gt;&lt;P&gt;&amp;nbsp; 01/06/2017,400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxMonth:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Month) as&amp;nbsp; MaxMonth&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxMonth = peek('MaxMonth',0,'MaxMonth');&lt;/P&gt;&lt;P&gt;Let vPreviousMonth = AddMonths(vMaxMonth,-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then create a textbox and insert: &lt;/P&gt;&lt;P&gt;='Max Month: ' &amp;amp; date(vMaxMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and create another textbox and insert:&lt;/P&gt;&lt;P&gt;='Previous Month: ' &amp;amp; vPreviousMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295006#M828897</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-28T18:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295007#M828898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure about 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;Let vPreviousMonth = AddMonths(vMaxMonth,-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295007#M828898</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-28T19:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295008#M828899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I got an expression error when I tried this response.&lt;/P&gt;&lt;P&gt;Additionally will the AddMonths() work when the date format is in MM/DD/YYYY?&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295008#M828899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T19:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295009#M828900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not? correct me if im wrong &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>Wed, 28 Jun 2017 19:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295009#M828900</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-28T19:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295010#M828901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Both vMaxMonth and vPreviousmonth are returning null values.&lt;/P&gt;&lt;P&gt;I think my system might be interpreting [Date] as a String.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295010#M828901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T20:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295011#M828902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the Date#() to specify the date format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TAB_MaxMonth:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Month(Max(DATE#([Date],'&lt;STRONG&gt;DATEFORMAT&lt;/STRONG&gt;')))) as MaxMonth,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Month(Max(DATE#([Date],'&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DATEFORMAT&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'))))&lt;/SPAN&gt;-1=0,12,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(Month(Max(DATE#([Date],'&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DATEFORMAT&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'))))&lt;/SPAN&gt;-1) as PreviousMonth&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Report;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMaxMonth = peek('&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;TAB_MaxMonth&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;',&lt;/SPAN&gt;0,'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MaxMonth'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vPreviousMonth = &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;peek('&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;TAB_MaxMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;',&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0,'&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;PreviousMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295011#M828902</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-28T20:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295012#M828903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is the OP is trying to retrieve month numbers while you've directly used dates as Month and use Addmonth() with the date value...if the OP tries the same with a Numeric(month number) value that would not return correct results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295012#M828903</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-28T20:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295013#M828904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh, you are absolutly right.&lt;/P&gt;&lt;P&gt;I was not reading in all detail.&lt;/P&gt;&lt;P&gt;thx for the hint&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295013#M828904</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-28T20:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295014#M828905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A bit of context as to what I'm trying to do. I have several Dates for reports in different months of 2017. However due to inconsistent uploading the day of the month they are uploaded varies. For the sake of my data being "Neat" I'm just trying to work with months to omit days entirely, as it is a monthly report anyways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I've run into on Qlikview compared to Power BI and Tableau is that it seems much harder to generate a differences Measure for data. That is to say, comparing a Sum of "Sales" from one month to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought was to just index the months using their respective month number. Doing a bit of googling on this idea led me to other posts in this Forum in which people seemed to being doing this using the Max() and Max()-1 functions on time data. However, when I attempted to recreate that following their posted examples I ran into this issue of Null values occurring instead of the months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if the in depth explanation can clear the water on what exactly I'm looking for. I just recently started working with Qlik due to its ability to maintain filtering while drilling through pages and am having a bit of trouble with the syntax of the Script and Expressions. Any ideas on how I'd achieve this result would be very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I'm attempting to use the created variables is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Month] = {$(vMaxMonth)}&amp;gt;}[Sales]) - Sum({$&amp;lt;[Month] = {$(vPreviousMonth)}&amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help so far!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295014#M828905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T20:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Max(Num(Month([Date]))) is &lt;NULL&gt;?</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295015#M828906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;useful References&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16968"&gt;Period Presets: Compare Periods on the fly&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Num-Month-Date-is-lt-NULL-gt/m-p/1295015#M828906</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-28T20:48:38Z</dc:date>
    </item>
  </channel>
</rss>

