<?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 Auto select time frame at startup in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196782#M56705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some code that I use to select the previous 12 months of invoices by default which should give you some ideas:&lt;/P&gt;&lt;P&gt;' Set rolling 12 month period for invoice month/year&lt;/P&gt;&lt;P&gt;' Get beginning range month/year&lt;BR /&gt; FromDate=DateAdd("m",-12,Date)&lt;BR /&gt; FromY=Year(FromDate)&lt;BR /&gt; FromM=Month(FromDate)&lt;BR /&gt; if len(FromM) &amp;lt; 2 then FromM = "0" &amp;amp; FromM end if&lt;BR /&gt; RangeFrom=FromY &amp;amp; FromM&lt;/P&gt;&lt;P&gt;' Get to range month/year&lt;BR /&gt; ToDate=DateAdd("m",-1,Date)&lt;BR /&gt; ToY=Year(ToDate)&lt;BR /&gt; ToM=Month(ToDate)&lt;BR /&gt; if len(ToM) &amp;lt; 2 then ToM = "0" &amp;amp; ToM end if&lt;BR /&gt; RangeTo=ToY &amp;amp; ToM&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("mmm CCYY").Select "&amp;gt;=" &amp;amp; RangeFrom &amp;amp; "&amp;lt;=" &amp;amp; RangeTo&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 14:14:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-10T14:14:59Z</dc:date>
    <item>
      <title>Auto select time frame at startup</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196779#M56702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to fix that my QV application will select a specified timerange at startup. Or something alike that mightdo the trick.&lt;/P&gt;&lt;P&gt;Within the QVW i have a field that is a combination of the year and week and ta year field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCENTYR &amp;amp; '-' &amp;amp; [INWK] &lt;B&gt;AS&lt;/B&gt; YearWeek,&lt;BR /&gt;INCENTYR &lt;B&gt;AS&lt;/B&gt; Year&lt;/P&gt;&lt;P&gt;The goal is that from the current year, all weeks till the current week are automaticaly selected at QVW startup.&lt;BR /&gt;&lt;BR /&gt;What is the best way to fix this issue?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 13:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196779#M56702</guid>
      <dc:creator />
      <dc:date>2010-09-10T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Auto select time frame at startup</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196780#M56703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As i understand from your question...&lt;/P&gt;&lt;P&gt;If you are able to select the current year, the data corresponding to the same will reflect automatically, means the data for all the weeks of current will reflect.&lt;/P&gt;&lt;P&gt;Just right in actions&lt;/P&gt;&lt;P&gt;Select field Year&lt;/P&gt;&lt;P&gt;=Max(Year)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 13:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196780#M56703</guid>
      <dc:creator>surender_mehta</dc:creator>
      <dc:date>2010-09-10T13:45:08Z</dc:date>
    </item>
    <item>
      <title>Auto select time frame at startup</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196781#M56704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I understand you. But the thing is, when I select the current year, it will light up all the weeks where data is available in this year.&lt;/P&gt;&lt;P&gt;But I only want the weeks light up till last week.&lt;/P&gt;&lt;P&gt;And this all automated when I start my QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 13:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196781#M56704</guid>
      <dc:creator />
      <dc:date>2010-09-10T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Auto select time frame at startup</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196782#M56705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some code that I use to select the previous 12 months of invoices by default which should give you some ideas:&lt;/P&gt;&lt;P&gt;' Set rolling 12 month period for invoice month/year&lt;/P&gt;&lt;P&gt;' Get beginning range month/year&lt;BR /&gt; FromDate=DateAdd("m",-12,Date)&lt;BR /&gt; FromY=Year(FromDate)&lt;BR /&gt; FromM=Month(FromDate)&lt;BR /&gt; if len(FromM) &amp;lt; 2 then FromM = "0" &amp;amp; FromM end if&lt;BR /&gt; RangeFrom=FromY &amp;amp; FromM&lt;/P&gt;&lt;P&gt;' Get to range month/year&lt;BR /&gt; ToDate=DateAdd("m",-1,Date)&lt;BR /&gt; ToY=Year(ToDate)&lt;BR /&gt; ToM=Month(ToDate)&lt;BR /&gt; if len(ToM) &amp;lt; 2 then ToM = "0" &amp;amp; ToM end if&lt;BR /&gt; RangeTo=ToY &amp;amp; ToM&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("mmm CCYY").Select "&amp;gt;=" &amp;amp; RangeFrom &amp;amp; "&amp;lt;=" &amp;amp; RangeTo&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 14:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196782#M56705</guid>
      <dc:creator />
      <dc:date>2010-09-10T14:14:59Z</dc:date>
    </item>
    <item>
      <title>Auto select time frame at startup</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196783#M56706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the code.&lt;/P&gt;&lt;P&gt;I'll will see what I can use from it. I think it's not exactly usefull for my problem when I intepret it the right way.&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 19:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-select-time-frame-at-startup/m-p/196783#M56706</guid>
      <dc:creator />
      <dc:date>2010-09-14T19:33:44Z</dc:date>
    </item>
  </channel>
</rss>

