<?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: Current and Prior Month from Variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141254#M21041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the calendar only has month dates in it then why wouldn't &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;INFORCE_DATE={$(=(max(INFORCE_DATE)))}&amp;gt;}AUTO_ANNUAL_PREMIUM) &lt;/EM&gt;work?&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;/EM&gt;If I do &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;AS_OF_YYYYMM={$(=(max(&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AS_OF_YYYYMM&lt;/EM&gt;)))}&amp;gt;}AUTO_ANNUAL_PREMIUM) &lt;/EM&gt;it works. They are 1:1 in the data model.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cal.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215512_cal.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2018 16:11:48 GMT</pubDate>
    <dc:creator>carlcimino</dc:creator>
    <dc:date>2018-10-09T16:11:48Z</dc:date>
    <item>
      <title>Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141248#M21035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm using a Autogenerate Calendar and trying to get the current month and prior year month flags working.&amp;nbsp; My script is below.&amp;nbsp; I tried the suggestion marked correct from &lt;A href="https://community.qlik.com/thread/281605"&gt;Getting Previous month date from current month date&lt;/A&gt;‌ but got an invalid expression when I substituted my date field.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Find max report year/month&lt;/P&gt;&lt;P&gt;Cal_Min_Max:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;max(DATE(MakeDate(LEFT(AS_OF_YYYYMM,4),'01',RIGHT(AS_OF_YYYYMM,2)),'DD/MM/YYYY')) as MaxCalDate,&lt;/P&gt;&lt;P&gt;min(DATE(MakeDate(LEFT(AS_OF_YYYYMM,4),'01',RIGHT(AS_OF_YYYYMM,2)),'DD/MM/YYYY')) as MinCalDate&lt;/P&gt;&lt;P&gt;FROM [lib://PRS_Auto_Inforce_QVD/AUTO_INFORCE.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Store min and max inforce to a Variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMax_Inforce_Date = num(peek('MaxCalDate',0,'Cal_Min_Max'));&lt;/P&gt;&lt;P&gt;Let vMin_Inforce_Date = num(peek('MinCalDate',0,'Cal_Min_Max'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Cal_Min_Max;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Calendar:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMin_Inforce_Date) + Iterno()-1 As Num,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(vMin_Inforce_Date) + IterNo() - 1) as TempDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1 While $(vMin_Inforce_Date) + IterNo() -1 &amp;lt;= $(vMax_Inforce_Date);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;MasterCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TempDate AS OrderDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(TempDate) As Month,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YeartoDate(TempDate)*-1 as CurYTDFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date( MonthEnd(addmonths(Max(Date#(TempDate ,'DD-MMM-YYYY')),-1)),'DD-MMM-YYYY')&amp;nbsp; as PRIOR_YEAR_MONTH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YeartoDate(TempDate,-1)*-1 as LastYTDFlag&lt;/P&gt;&lt;P&gt;Resident Temp_Calendar&amp;nbsp; &lt;/P&gt;&lt;P&gt;Order By TempDate ASC;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Drop Table Temp_Calendar;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 17:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141248#M21035</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2018-10-08T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141249#M21036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Few things&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The link you mentioned seem to be using the expression for front end not in script&lt;UL&gt;&lt;LI&gt;therefore in script Max is not needed&lt;/LI&gt;&lt;LI&gt;also check the format that you have data in. your data seems to be in '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DD/MM/YYYY' according to top part of your script. so you will need to modify that&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;in Prior_Year_Month - please explain what do you want there. i can try and help accordingly&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if its just LYTD and CYTD flag use below code (vToday is variable with current day)&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;InYearToDate(CalDate, '$(vToday)', 0) * -1 as CYTDFlag,&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; InYearToDate(CalDate, '$(vToday)', -1) * -1 as LYTDFlag,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;In general i would recommend using script from below link for Master calendar. the link describes why&lt;UL&gt;&lt;LI&gt;&lt;A href="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/" title="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/"&gt;Better Calendar Scripts | Qlikview Cookbook&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 18:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141249#M21036</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-08T18:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141250#M21037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dilip, Thanks for responding.&amp;nbsp; I used the better calendar scripts from Rob W.&amp;nbsp; Works great!&amp;nbsp; Current month is not the month of today it is the month of the max INFORCE_DATE data in my fact set.&amp;nbsp; Here's my new calendar script that is working.&amp;nbsp; I just need to get the CM flag and a same month last year flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; TempDate AS INFORCE_DATE, &lt;/P&gt;&lt;P&gt; week(TempDate) As Week, &lt;/P&gt;&lt;P&gt; Year(TempDate) As Year, &lt;/P&gt;&lt;P&gt; Month(TempDate) As Month, &lt;/P&gt;&lt;P&gt; Day(TempDate) As Day, &lt;/P&gt;&lt;P&gt; 'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, &lt;/P&gt;&lt;P&gt; Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, &lt;/P&gt;&lt;P&gt; WeekDay(TempDate) as WeekDay &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Generate a temp table of dates === &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; date(mindate + IterNo()) AS TempDate&lt;/P&gt;&lt;P&gt; ,maxdate // Used in InYearToDate() above, but not kept &lt;/P&gt;&lt;P&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Get min/max dates from Field ===/&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; min(FieldValue('INFORCE_DATE', recno()))-1 as mindate,&lt;/P&gt;&lt;P&gt; max(FieldValue('INFORCE_DATE', recno())) as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount('INFORCE_DATE');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cm.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215402_cm.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 20:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141250#M21037</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2018-10-08T20:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141251#M21038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;InMonthToDate (TempDate, maxdate, 0)*-1 as CM_Flag&lt;/P&gt;&lt;P&gt;InMonthToDate (TempDate, maxdate, -12)*-1 as CM_PY_Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i understood correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 21:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141251#M21038</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-08T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141252#M21039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi those added the flags correctly and the calendar works. Those flags will work for a static view but.&amp;nbsp; Now if &lt;SPAN style="font-size: 13.3333px;"&gt;I want to&amp;nbsp; have KPIs that show Current Month and Prior Year Month and be flexible based on the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INFORCE_DATE selected. I have to do something else.&amp;nbsp; What I have tried is below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the flags as suggested.&amp;nbsp; I also did a where exists because my data only has 1 inforce date so I don't need all the dates between each snapshot in my calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALENDAR:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; TempDate AS INFORCE_DATE, &lt;/P&gt;&lt;P&gt; week(TempDate) As Week, &lt;/P&gt;&lt;P&gt; Year(TempDate) As Year, &lt;/P&gt;&lt;P&gt; Month(TempDate) As Month, &lt;/P&gt;&lt;P&gt; Day(TempDate) As Day, &lt;/P&gt;&lt;P&gt; 'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter, &lt;/P&gt;&lt;P&gt; Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear, &lt;/P&gt;&lt;P&gt; InMonthToDate (TempDate, maxdate, 0)*-1 as CM_Flag,&lt;/P&gt;&lt;P&gt; InMonthToDate (TempDate, maxdate, -12)*-1 as CM_PY_Flag,&lt;/P&gt;&lt;P&gt; WeekDay(TempDate) as WeekDay &lt;/P&gt;&lt;P&gt; where exists (INFORCE_DATE,TempDate)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Generate a temp table of dates === &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; date(mindate + IterNo()) AS TempDate&lt;/P&gt;&lt;P&gt; ,maxdate // Used in InYearToDate() above, but not kept &lt;/P&gt;&lt;P&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Get min/max dates from Field ===/&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; min(FieldValue('INFORCE_DATE', recno()))-1 as mindate,&lt;/P&gt;&lt;P&gt; max(FieldValue('INFORCE_DATE', recno())) as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount('INFORCE_DATE');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store CALENDAR into 'lib://PRS_Auto_Inforce_QVD/CALENDAR.qvd' (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table CALENDAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Using this it returns the correct value (left below with number erased):&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum({&amp;lt;AS_OF_YYYYMM={$(=max(AS_OF_YYYYMM))}&amp;gt;}AUTO_ANNUAL_PREMIUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this it returns -.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;INFORCE_DATE={$(=(max(INFORCE_DATE)))}&amp;gt;}AUTO_ANNUAL_PREMIUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to use the second expression and do -1 to get the prior date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kpi.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215497_kpi.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 15:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141252#M21039</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2018-10-09T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141253#M21040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"&lt;EM&gt;Using this it returns -.&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Sum({&amp;lt;INFORCE_DATE={$(=(max(INFORCE_DATE)))}&amp;gt;}AUTO_ANNUAL_PREMIUM)&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;I was hoping to use the second expression and do -1 to get the prior date.&lt;/EM&gt;"&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&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;Sure that should work usually but if all date values are not present in the master calendar not sure how you can know which is the prior date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 15:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141253#M21040</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-09T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current and Prior Month from Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141254#M21041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the calendar only has month dates in it then why wouldn't &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;INFORCE_DATE={$(=(max(INFORCE_DATE)))}&amp;gt;}AUTO_ANNUAL_PREMIUM) &lt;/EM&gt;work?&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;/EM&gt;If I do &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;AS_OF_YYYYMM={$(=(max(&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AS_OF_YYYYMM&lt;/EM&gt;)))}&amp;gt;}AUTO_ANNUAL_PREMIUM) &lt;/EM&gt;it works. They are 1:1 in the data model.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cal.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215512_cal.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-and-Prior-Month-from-Variable/m-p/141254#M21041</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2018-10-09T16:11:48Z</dc:date>
    </item>
  </channel>
</rss>

