<?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: Using a trigger to get a Min(CalendarDate) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587822#M217972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric, that makes sense when I think about it, I will test this on Monday when I'm back in the office .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Mar 2014 11:40:34 GMT</pubDate>
    <dc:creator>paul_scotchford</dc:creator>
    <dc:date>2014-03-01T11:40:34Z</dc:date>
    <item>
      <title>Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587816#M217966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get the below scenario to work ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Config&lt;/STRONG&gt; : QlikView Server 11.2 SR5 on a Win 2012 box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1: Date Dimension of Years, Months, Dates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2: OnSelect Action on the Years Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User selects the Year e.g. 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OnSelect trigger to Set Variable with a search string &lt;STRONG&gt;= Min(CalendarDate)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Result&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variable should now have the Min Date of the selected year e.g. '1st Jan 2013' value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The variable does not change!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the trigger works as I can use a literal and plug it into the variable, I thought though that I would be ok using the Min() function to get the start date of the Year selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearly I am missing something or its just not supported by QV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 00:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587816#M217966</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-03-01T00:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587817#M217967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the function MonthStart function to obtain the date that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: MonthStart(MakeDate("here obtain the value of the selection*")&lt;/P&gt;&lt;P&gt;* You can use, max(year), min(year), getfieldselections(year), only(year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthStart return a date with the first day of the month, and makedate generates a date with the values that you specified for the year, month and day for example MakeDate (2013,12,08)&amp;nbsp; -- Year, Month, Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 01:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587817#M217967</guid>
      <dc:creator />
      <dc:date>2014-03-01T01:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587818#M217968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work for sure.Have you tried any other trigger in the same applications ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="min date in year.jpg" class="jive-image" src="/legacyfs/online/54068_min date in year.jpg" style="width: 620px; height: 309px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 02:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587818#M217968</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-03-01T02:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587819#M217969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chiranjeevi,&lt;/P&gt;&lt;P&gt;This is how I Implemented it as detailed in my question, it does not work unfortunately, hence my post&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 02:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587819#M217969</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-03-01T02:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587820#M217970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the trigger on select of field year is set variable with expression &lt;/P&gt;&lt;P&gt;=date(min(CalendarDate), 'DD MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to set the variable also when you select in different calendar fields (date field, ....), use&amp;nbsp; the on select trigger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 08:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587820#M217970</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-01T08:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587821#M217971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need a trigger for this. Just set the variable to '&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Min(CalendarDate)&lt;/STRONG&gt;' &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;including the equal sign&lt;/EM&gt;&lt;/SPAN&gt;, and then it will recalculate automatically every time you make a selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 10:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587821#M217971</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-03-01T10:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using a trigger to get a Min(CalendarDate)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587822#M217972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric, that makes sense when I think about it, I will test this on Monday when I'm back in the office .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-trigger-to-get-a-Min-CalendarDate/m-p/587822#M217972</guid>
      <dc:creator>paul_scotchford</dc:creator>
      <dc:date>2014-03-01T11:40:34Z</dc:date>
    </item>
  </channel>
</rss>

