<?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 ActiveDocument.Fields  .Select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257825#M581627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to select a rolling 12 months of data when I select a chart.&amp;nbsp; The field I need to select on is YrMonth which is in the format 12012-01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SetRolling12Mo&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YrMonth").Clear&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YrMonth").Select "&amp;lt;=" &amp;amp; Year(now()) &amp;amp; "-" &amp;amp; Month(now())&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help woudl be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2012 21:23:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-06T21:23:28Z</dc:date>
    <item>
      <title>ActiveDocument.Fields  .Select</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257825#M581627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to select a rolling 12 months of data when I select a chart.&amp;nbsp; The field I need to select on is YrMonth which is in the format 12012-01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SetRolling12Mo&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YrMonth").Clear&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("YrMonth").Select "&amp;lt;=" &amp;amp; Year(now()) &amp;amp; "-" &amp;amp; Month(now())&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help woudl be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 21:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257825#M581627</guid>
      <dc:creator />
      <dc:date>2012-01-06T21:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.Fields  .Select</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257826#M581628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;i findit a best practice to have a field in the calnder , monthyear which have the value monthtart of every date&lt;/P&gt;&lt;P&gt;i.e all dates are 01/012012 , 01/12/2011.....&lt;/P&gt;&lt;P&gt;then in your case i would define a varaible with the formula =addmonths(max(monthyear),-11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the macro use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SetRolling12Mo&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("monthyear").Clear&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("monthyear").Select "&amp;gt;=" &amp;amp; varaible&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 15:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257826#M581628</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-01-07T15:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveDocument.Fields  .Select</title>
      <link>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257827#M581629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also a problem with this? can someone help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ActiveDocument-Fields-Select/m-p/257827#M581629</guid>
      <dc:creator />
      <dc:date>2015-05-12T11:16:28Z</dc:date>
    </item>
  </channel>
</rss>

