<?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 Getting page to default to max month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282760#M1202276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable that contains the following formula and call it vMaxMonth:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;max(aggr(Month,Month))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;. I know this is somewhat convoluted, but it doesn't work to just say max(Month) for some reason. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then create the following macro, which you can trigger on activate or whenever:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub selectmaxmonth&lt;BR /&gt; inputVal = ActiveDocument.Variables("vMaxMonth").GetContent.String&lt;BR /&gt; ActiveDocument.Fields("Month").Select FormatDateTime(inputVal)&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 18:13:50 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-10-19T18:13:50Z</dc:date>
    <item>
      <title>Getting page to default to max month</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282759#M1202275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like my QlikView page to default to the maximum month. I have gone into sheet properties/ triggers/ Edit Action on activate sheet.&lt;/P&gt;&lt;P&gt;Selected select in field&lt;/P&gt;&lt;P&gt;Field = Month&lt;/P&gt;&lt;P&gt;Search String =max(Month)&lt;/P&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;but this doesn't seem to work, I have saved the application open it and it is selecting the full year which is what we previously programmed it to do. Can anyone see what i am doing wrong/&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 09:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282759#M1202275</guid>
      <dc:creator />
      <dc:date>2010-10-19T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Getting page to default to max month</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282760#M1202276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable that contains the following formula and call it vMaxMonth:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;max(aggr(Month,Month))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;. I know this is somewhat convoluted, but it doesn't work to just say max(Month) for some reason. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then create the following macro, which you can trigger on activate or whenever:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub selectmaxmonth&lt;BR /&gt; inputVal = ActiveDocument.Variables("vMaxMonth").GetContent.String&lt;BR /&gt; ActiveDocument.Fields("Month").Select FormatDateTime(inputVal)&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 18:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282760#M1202276</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-10-19T18:13:50Z</dc:date>
    </item>
    <item>
      <title>Getting page to default to max month</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282761#M1202277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you say create the following macro - where do i create it? in the script or is it in sheet properties/ triggers&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 16:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282761#M1202277</guid>
      <dc:creator />
      <dc:date>2010-10-21T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Getting page to default to max month</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282762#M1202278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CTRL+M or Tools --&amp;gt; Edit Module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 20:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282762#M1202278</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-10-21T20:29:10Z</dc:date>
    </item>
    <item>
      <title>Getting page to default to max month</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282763#M1202279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;ATucker1 wrote:&lt;BR /&gt;Selected select in field&lt;BR /&gt;Field = Month&lt;BR /&gt;Search String =max(Month)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using maxstring() instead.&lt;/P&gt;&lt;P&gt;Search String =max&lt;STRONG&gt;string&lt;/STRONG&gt;(Month)&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 01:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-page-to-default-to-max-month/m-p/282763#M1202279</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-10-22T01:22:51Z</dc:date>
    </item>
  </channel>
</rss>

