<?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: Variable Date from Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942483#M645840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i understand what you are trying to do. But the question is are you going to be using this variable in the script? because if you do, then you cannot use functions in scripts, you would need to change it to a static value. If this is for front end (and will change based on selections) then why don't you create this on the front end itself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 18:28:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-16T18:28:20Z</dc:date>
    <item>
      <title>Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942476#M645833</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 have an app that has several calendars, and I am trying to create a variable based on a month date from that calendar date.&amp;nbsp; Everything that I can find so far seems to be a variable based on set dates, or other formulas such as Today().&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for is essentially just the current OppMonthYear, less one month. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Calendar.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109199_Calendar.JPG" style="height: 252px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can this be done? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942476#M645833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T17:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942477#M645834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure what you mean. But may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(AddMonths(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OppMonthYear), -1)) as NeededOppMonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Opp_Calendar;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET vNeededOppMonthYear = Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NeededOppMonthYear');&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DROP Table Temp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942477#M645834</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-16T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942478#M645835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're on the right track regarding what I'm looking for.&amp;nbsp; However that script seems to return only a text value of &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peek('&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;NeededOppMonthYear');&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942478#M645835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T18:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942479#M645836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;Num(&lt;/SPAN&gt;AddMonths(Max(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;OppMonthYear), -1)) as NeededOppMonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Opp_Calendar;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SET vNeededOppMonthYear = Peek('&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;NeededOppMonthYear');&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DROP Table Temp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942479#M645836</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-16T18:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942480#M645837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;LOAD Num(AddMonths(Max(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;OppMonthYear), -1)) as NeededOppMonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Resident Opp_Calendar;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;SET vNeededOppMonthYear = Peek('&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;NeededOppMonthYear' &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;, 0 , Temp&lt;/STRONG&gt;&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;DROP Table Temp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;I hope that it help you! ifnot just ask us!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Agustin&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942480#M645837</guid>
      <dc:creator />
      <dc:date>2015-12-16T18:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942481#M645838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same thing.&amp;nbsp; It seems that the Peek is not coming back as a function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942481#M645838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T18:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942482#M645839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109192_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing as before. It seems that in both yours and Sunny's scrip it's not picking up the PEEK as a function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942482#M645839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T18:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Date from Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942483#M645840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i understand what you are trying to do. But the question is are you going to be using this variable in the script? because if you do, then you cannot use functions in scripts, you would need to change it to a static value. If this is for front end (and will change based on selections) then why don't you create this on the front end itself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Date-from-Calendar/m-p/942483#M645840</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-16T18:28:20Z</dc:date>
    </item>
  </channel>
</rss>

