<?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: Trouble setting up trigger for Quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406176#M151116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that your PostingQuarter is a string type, like 'Q1', 'Q2', ... right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;- The ceil() function returns a numeric value so it will not match any value in your field.&lt;/P&gt;&lt;P&gt;- The max() function only returns numeric values. If the PostingQuarter field is a string type, the function will return null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these two options:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;='Q' &amp;amp; ceil(month(today())/3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;= &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MaxString(PostingQuarter)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2013 11:33:41 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2013-01-09T11:33:41Z</dc:date>
    <item>
      <title>Trouble setting up trigger for Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406175#M151115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i'm trying to create a trigger for each tab which will autumatically select the current year and quarter. I have managed to do it for year but it is not working for Quarter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For year my field would be PostingYear and the script for it is =Year(Today()) and for quarter the field would be PostingQuarter and the script i gave was =ceil(month(today())/3). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried =Max(PostingQuarter) but it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me on this. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 07:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406175#M151115</guid>
      <dc:creator />
      <dc:date>2013-01-09T07:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting up trigger for Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406176#M151116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that your PostingQuarter is a string type, like 'Q1', 'Q2', ... right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;- The ceil() function returns a numeric value so it will not match any value in your field.&lt;/P&gt;&lt;P&gt;- The max() function only returns numeric values. If the PostingQuarter field is a string type, the function will return null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these two options:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;='Q' &amp;amp; ceil(month(today())/3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;= &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MaxString(PostingQuarter)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 11:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406176#M151116</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2013-01-09T11:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting up trigger for Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406177#M151117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first if did not work but later the request was changed from tab to document trigger and now it works just perfectly. Thank Fernando once again for saving my day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 04:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-setting-up-trigger-for-Quarter/m-p/406177#M151117</guid>
      <dc:creator />
      <dc:date>2013-01-10T04:57:50Z</dc:date>
    </item>
  </channel>
</rss>

