<?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: error when reloading the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803010#M283501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Judas, I can't see the screenshot, can you reattach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, what are you trying to get in MonthId? ie, for the actual date (16/01/2015) it will return:&lt;/P&gt;&lt;P&gt;(2015-1)*12+1=24169&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually a number format for year &amp;amp; month is created this way:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) * 100 + Num(Month(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) As MonthId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will return 201501 for 16/01/2015&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 11:59:58 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-01-16T11:59:58Z</dc:date>
    <item>
      <title>error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803005#M283496</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;I get the following error:&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;IMG height="478" src="https://community.qlik.com/" width="492" /&gt;&lt;/SPAN&gt; when I Re_load the following script after adding the following line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)– 1&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * 12 + Num(Month(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) As MonthId &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; below is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Adding the Calendar&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;"Calendar":&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Standard Date Objects&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DayOfMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DayName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WeekOfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; 'Q' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/3) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)– 1) * 12 + Num(Month(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) As MonthId&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; RESIDENT &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"FACT_POLICY_SNAP_DLY"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803005#M283496</guid>
      <dc:creator />
      <dc:date>2015-01-16T11:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803006#M283497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me, the image of the error is blank. Can you upload the screenshot again, or copy the text of the message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803006#M283497</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-16T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803007#M283498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Peter,&lt;/P&gt;&lt;P&gt;below is the screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803007#M283498</guid>
      <dc:creator />
      <dc:date>2015-01-16T11:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803008#M283499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still blank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803008#M283499</guid>
      <dc:creator />
      <dc:date>2015-01-16T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803009#M283500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview Creates Log file in Text Please check this log file if possible attach so that anybody can guide you on &lt;/P&gt;&lt;P&gt;syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803009#M283500</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2015-01-16T11:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803010#M283501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Judas, I can't see the screenshot, can you reattach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, what are you trying to get in MonthId? ie, for the actual date (16/01/2015) it will return:&lt;/P&gt;&lt;P&gt;(2015-1)*12+1=24169&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually a number format for year &amp;amp; month is created this way:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) * 100 + Num(Month(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) As MonthId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will return 201501 for 16/01/2015&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 11:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803010#M283501</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-16T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803011#M283502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error msg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression:')' expected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803011#M283502</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803012#M283503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error in expression:&lt;BR /&gt;')' expected&lt;BR /&gt;"Calendar":&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;[Date_Dt], &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Day([Date_Dt]) AS DayOfMonth,&amp;nbsp; &lt;BR /&gt;WeekDay([Date_Dt]) AS DayName,&amp;nbsp; &lt;BR /&gt;Week([Date_Dt]) AS WeekOfYear,&amp;nbsp; &lt;BR /&gt;Month([Date_Dt]) AS Month,&lt;BR /&gt;Num(Month([Date_Dt])) AS MonthNum,&amp;nbsp;&amp;nbsp; &lt;BR /&gt;'Q' &amp;amp; Ceil(Month([Date_Dt])/3) AS Quarter,&amp;nbsp; &lt;BR /&gt;Year([Date_Dt]) AS Year,&lt;BR /&gt;(Year([Date_Dt])– 1) * 12 + Num(Month([Date_Dt])) As MonthId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT "FACT_POLICY_SNAP_DLY"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803012#M283503</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803013#M283504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Judas, rewrite the '-', in my qv it's readed as an unrecognized symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803013#M283504</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-16T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803014#M283505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186px; background-color: #f6f6f6;"&gt;Try this &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: 12.222222328186px; background-color: #f6f6f6;"&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: 12.222222328186px; background-color: #f6f6f6;"&gt;( Year([Date_Dt])– 1) * 12 + Num(Month([Date_Dt])) ) As MonthId&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803014#M283505</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2015-01-16T12:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803015#M283506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Judas,&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)- 1&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * 12 + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date_Dt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthId &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;literally copy and paste it. Your minus character doesn't look to be right, so might be the reason&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;–&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;vs &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;- &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803015#M283506</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803016#M283507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a month id to use when I create the dates comparisons...check the info below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 3;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.5pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Point In Time Reporting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;I have always believed that Set Analysis’ Raison d’être is to satisfy a basic need in any BI Tool: the ability to perform “Point In Time” Analysis. But, needless to say, it is also amazingly useful for the fulfillment of a bunch of other special needs. In this post, I will cover the specifics of Point In Time Reporting with Set Analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Update 2012/12/13: &lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;Barry Harmsen and I have just released our book &lt;/SPAN&gt;&lt;A href="https://iqlik.wordpress.com/get-the-book/" title="QlikView 11 for Developers"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;QlikView 11 for Developers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;. While it is not free, it does offer a cost-friendly, guided way to learn QlikView and contains an entire chapter about Set Analysis. More information can be found by clicking &lt;/SPAN&gt;&lt;A href="https://iqlik.wordpress.com/get-the-book/" title="QlikView book"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;here&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 3;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.5pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Step by Step&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;We have already reviwed Set Analysis Syntax &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/" target="_blank"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;here &lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;and the concept of Dynamic Record Sets &lt;/SPAN&gt;&lt;A href="https://iqlik.wordpress.com/2010/11/21/the-magic-of-set-analysis-part-iii/" target="_blank" title="The Magic of Set Analysis – Part III"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;here&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;. So now, we will combine the acquired knowledge to deliver a real-life application of Set Analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;Let’s say the user has the following Selection State: &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Year &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= 2010; &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Quarter &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= Q4; &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= November. The user is analyzing Sales and needs to compare this period versus the previous Month (October, in this case). How do we accomplish this? This one is simple.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;The basic idea is to tell QlikView to assign new value to the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;. Remember how we did it in the &lt;/SPAN&gt;&lt;A href="https://iqlik.wordpress.com/2010/11/21/the-magic-of-set-analysis-part-iii/" target="_blank" title="The Magic of Set Analysis – Part III"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;previous post&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Determine the value to be assigned&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;We can use an aggregation function to determine the value we want to assign to the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month, for example&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;: &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #000000;"&gt;Max(Month) – 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;. Depending on the way you generated the field Month, it might give you the correct result (10, for October). But if it does not have a numeric representation, meaning it is just a literal value, it will return null.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;However, even if it yields a numeric value, you can not assign that value to the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;because it does not exist as is, we have to assign the exact value, as it exists in our table, to the appropriate field (‘October’ as a literal, to the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;). So our approach will be to have &lt;/SPAN&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;another&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; field, named &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;[Month (#)]&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt; which will contain the numeric representation of the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;. That way, we can assign the result of the expression &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #000000;"&gt;Max([Month (#)]) – 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; to the field&lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt; [Month (#)]&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Our preliminar expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;The Set expression to assign the obtained value to the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;[Month (#)] &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;would be:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;{$&amp;lt;[Month (#)] = {$(=Max([Month (#)]) – 1)}&amp;gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;. (Check &lt;A _jive_internal="true" href="https://community.qlik.com/" target="_blank"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;here &lt;/SPAN&gt;&lt;/A&gt;if you are having trouble understanding the syntax).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;The next step would be to use this set expression with our Aggregation function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l5 level1 lfo2; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;[Month (#)] = {$(=Max([Month (#)]) – 1)}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;But there is a problem! That expression will return zero because the value we are trying to retrieve is actually excluded by the current selection state of the user: The user has specifically selected November, therefore reducing the record set to only the records associated with that value. How do we retrieve a value that is currently excluded?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;A few adjustments&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;The answer is: ignore the user’s selection for that specific field. This is accomplished by assigning a blank value to that field in our set expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l6 level1 lfo3; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;{$&amp;lt;[Month (#)] = {$(=Max([Month (#)]) – 1)}, Month = &amp;gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;That will first retrieve the record set for all the available months, unless they are excluded by another field selection, and then assign the value we want (10) to the specified field (&lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;[Month (#)]&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;), therefore returning at he end the record set for October only. The order of the field assignments in our Set Expression is not of importance. Our final expression is:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l7 level1 lfo4; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;[Month (#)] = {$(=Max([Month (#)]) – 1)}, Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Another example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;Easy huh? Great! Now, Let’s say the user’s selection State is: &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Year &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= 2010; &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Quarter &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= Q4; &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= October. Will the above expression return the sales for September? The answer is No. Can you guess why?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;Correct! Because the month we want is not only excluded by the field selection for &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;, but also by the field selection for &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Quarter&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;. So our expression should be:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l3 level1 lfo5; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;[Month (#)] = {$(=Max([Month (#)]) – 1)}, Quarter = , Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Yet another inconvenient with the expression above.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;When developing an application, you have to account for all the alternative selections the end user can make. So now, let’s assume the selection state is as follows: &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Year &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= 2010; &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;= January; (Nothing selected in the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Quarter&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;, but as we might expect, only one possible value (Q1).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;If we want the sales for the previous month (December, 2009) we need to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="1" style="list-style-type: decimal;"&gt;&lt;OL start="1" style="list-style-type: decimal;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l8 level1 lfo6; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Ignore both &lt;EM&gt;Year &lt;/EM&gt;and &lt;EM&gt;Month &lt;/EM&gt;selections.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="1" style="list-style-type: decimal;"&gt;&lt;OL start="1" style="list-style-type: decimal;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l8 level1 lfo6; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Create an expression that works just as the previous one, but with which we can also obtain the number 12 (for december) whenever the selection is January. (The previous expression (Max([Month (#)] – 1)) returns zero in this scenario, which is not useful.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL start="1" style="list-style-type: decimal;"&gt;&lt;OL start="1" style="list-style-type: decimal;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l8 level1 lfo6; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Create an expression that returns the value for the previous Year. Simple task.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;A direct approach would be to create an If Expression like this: &lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;If((Max([Month (#)]) – 1) = 0, 12, Max([Month (#)] – 1))&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;. But I find it very impractical, so here is another approach:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l2 level1 lfo7; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;In the script, assign a consecutive number for each month, a unique ID, one that you can easily play with. I use the following formula: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l2 level2 lfo7; tab-stops: list 1.0in;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;(Year(Date) – 1)&amp;nbsp; * 12 + Num(Month(Date))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;The above formula will for example, assign the value 24120 to December 2009 and 24121 to January 2010, and so on. Moreover, since these numbers are 5-digit long, you can easily find a more memory-friendly way to assign a unique ID to every month using the same concept. Our friend Barry, from &lt;/SPAN&gt;&lt;A href="http://qlikfix.com/" target="_blank" title="qlikfix.com"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;qlikfix.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;, recommended &lt;/SPAN&gt;&lt;A href="https://iqlik.wordpress.com/2010/11/21/the-magic-of-set-analysis-part-iii/#comment-10" target="_blank"&gt;&lt;SPAN style="color: blue; text-decoration: underline;"&gt;here &lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt;to use the AutoNumber function. I second that, only if your calendar table is loading in ascending order based on the date, which is almost always the case.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;So, now that we have the consecutive number for month (let’s call it &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;MonthID&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;), we can use this expression to retrieve the value for the previous &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;MonthID&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt; that will work for every scencario:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l4 level1 lfo8; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Max(MonthID) – 1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;The final expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Our final expression will look like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l9 level1 lfo9; tab-stops: list .5in;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID) – 1)}, Year = , Quarter = , Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Note that I’m ignoring Selection made on Year, Quarter and Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;&lt;SPAN style="color: #000000;"&gt;The same concept used in &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;MonthID&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt; can be used for the field &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Quarter&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;. We can easily and seamlessly create a lot of expressions for Point In Time Reporting after we’ve created the Calendar table with at least the following fields: &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Date&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Year&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Month&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;Quarter&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;MonthID &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;and &lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;QuarterID&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 4;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;More Examples&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Now, lets see some common Set Analysis expressions that we can use when required:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;YTD (Year-To-Date) Sales: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {“&amp;lt;=$(=Max(MonthID))”},&lt;BR /&gt; Year = {$(=Max(Year))},&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;QTD&amp;nbsp; (Quarter-To-Date) Sales: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {“&amp;lt;=$(=Max(MonthID))”},&lt;BR /&gt; QuarterID = {$(=Max(QuarterID))},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;MTD (Month-To-Date) Sales: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID))},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Previous Month Sales: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID) – 1)},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Previous Quarter Sales: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;QuarterID = {$(=Max(QuarterID) – 1)},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sales for the same Month but Previous Year: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID) – 12)},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sales for same Quarter of the Previous Year: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;QuarterID = {$(=Max(QuarterID) – 4)},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;YTD Sales for Previous Year &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {“&amp;lt;=$(=Max(MonthID) – 12)”},&lt;BR /&gt; Year = {$(=Max(Year) – 1)},&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo10; tab-stops: list .5in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sales for Rolling 12 Months: &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI style="margin: 0in 0in 10pt; line-height: normal; font-style: normal; font-weight: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level2 lfo10; tab-stops: list 1.0in;"&gt;&lt;SPAN lang="EN" style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;MonthID = {“&amp;gt;=$(=Max(MonthID) – 11)&amp;lt;=$(=Max(MonthID))”},&lt;BR /&gt; Year = ,&lt;BR /&gt; Quarter = ,&lt;BR /&gt; Month = &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;So, there you have it, a complete set of formulas to help you create Point In Time Analysis in your QlikView Applications in a very simple fashion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;I hope you have enjoyed this Part IV of the Series ‘The Magic Of Set Analysis’. Next post: Create your Point In Time Reporting Set expressions once and reuse them in every new QlikView app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;As always, comments and feedback are welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-ansi-language: EN; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;Mike.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803016#M283507</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803017#M283508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you right...its now looks fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks guys...thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803017#M283508</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803018#M283509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, the first minus in the last expression isn't a minus (char(45)) but character code 150. Outside of the set of 128 regular ASCII characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803018#M283509</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-16T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803019#M283510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no problem, glad to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803019#M283510</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803020#M283511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Joe and other guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the dates fields as per instructions but somehow is not populating the values .&lt;/P&gt;&lt;P&gt;LYTD....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {“&amp;lt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(MonthId) – 12)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;”},Year = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year) – 1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},Quarter = ,Month = &amp;gt;} Counter_Num) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;YTD...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {“&amp;lt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(MonthId))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;”},Year = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},Quarter = ,Month = &amp;gt;} Counter_Num) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803020#M283511</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803021#M283512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds like a different question, now we are looking into your front end expressions it might be worth knocking up an small example application, would be easier to troubleshoot then&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803021#M283512</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: error when reloading the script</title>
      <link>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803022#M283513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes I did by creating a chart n trowing the Monthid to see if it resolved to something but none.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-when-reloading-the-script/m-p/803022#M283513</guid>
      <dc:creator />
      <dc:date>2015-01-16T12:41:14Z</dc:date>
    </item>
  </channel>
</rss>

