<?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: On activate sheet trigger: last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/On-activate-sheet-trigger-last-year/m-p/1369319#M833621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting a variable in the load script.&amp;nbsp; Then use a button trigger rather than sheet activated trigger (I haven't had good luck with them in ajax).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable (in load script)&lt;/P&gt;&lt;P&gt;Let vminus12&amp;nbsp; = addmonths(yourdate,-12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In button, Triggers &amp;gt; Select in Field (enter your date field).&amp;nbsp; Use: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;gt;='&amp;amp;'$(&lt;SPAN style="font-size: 13.3333px;"&gt;vminus12&lt;/SPAN&gt;)' in the Search field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a shot and let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2017 16:09:40 GMT</pubDate>
    <dc:creator>jcampbell474</dc:creator>
    <dc:date>2017-06-14T16:09:40Z</dc:date>
    <item>
      <title>On activate sheet trigger: last year</title>
      <link>https://community.qlik.com/t5/QlikView/On-activate-sheet-trigger-last-year/m-p/1369318#M833620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want, on activate a sheet, always select the last year. &lt;/P&gt;&lt;P&gt;I do not want to select a year but always the last 12 months. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/On-activate-sheet-trigger-last-year/m-p/1369318#M833620</guid>
      <dc:creator>patrickruy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: On activate sheet trigger: last year</title>
      <link>https://community.qlik.com/t5/QlikView/On-activate-sheet-trigger-last-year/m-p/1369319#M833621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting a variable in the load script.&amp;nbsp; Then use a button trigger rather than sheet activated trigger (I haven't had good luck with them in ajax).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable (in load script)&lt;/P&gt;&lt;P&gt;Let vminus12&amp;nbsp; = addmonths(yourdate,-12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In button, Triggers &amp;gt; Select in Field (enter your date field).&amp;nbsp; Use: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;gt;='&amp;amp;'$(&lt;SPAN style="font-size: 13.3333px;"&gt;vminus12&lt;/SPAN&gt;)' in the Search field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a shot and let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 16:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/On-activate-sheet-trigger-last-year/m-p/1369319#M833621</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-06-14T16:09:40Z</dc:date>
    </item>
  </channel>
</rss>

