<?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: Most recent date / Year / Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420930#M156738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do the date selection first and then the year and month selection you should get the right month and year.&lt;/P&gt;&lt;P&gt;Add three actions to your button.&amp;nbsp; The first action:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Action : Select in Field 'Date'&amp;nbsp; =Max(date(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;The second action Select in Field 'Year' =Max(Year(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;The third action Select in Field 'Month' =max(Month(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 14:59:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-14T14:59:36Z</dc:date>
    <item>
      <title>Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420925#M156733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm importing&amp;nbsp; dates into QV.&lt;/P&gt;&lt;P&gt;I'm extracting the field Year with 'Year (Date) as Year' and 'Weekstart(Date) as NumberWeek'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I have a button that get the most recent date :&lt;/P&gt;&lt;P&gt;Action : Select in Field 'Date'&amp;nbsp; =Max(date(Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works and select the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For exemple 14/01/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this date is selected (appears in green) I can see my list boxes&amp;nbsp; (Year and NumberWeek) with grey selection except for the latest Year (2013) and the corresponding NumberWeek (3) but I would like to get the green selection for those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to implement this :&lt;/P&gt;&lt;P&gt;I've tried putting ohter action for my button : &lt;/P&gt;&lt;P&gt;Action : Select in Field 'Year' =Year(GetCurrentSelections(Date)) but it doesn't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetCurrentSelections(Date) gives : Date = 14/01/2013&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420925#M156733</guid>
      <dc:creator />
      <dc:date>2013-01-14T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420926#M156734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can't you do the same as you did for the date field, but instead do =max(year(Date)) and =max(month(Date))?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420926#M156734</guid>
      <dc:creator />
      <dc:date>2013-01-14T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420927#M156735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I can't.. I have data on several years...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for exemple =max(NumberWeek(Date)) will give me 54 (from 2012 data) and latest NumberWeek is actually 3 (from 2013)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420927#M156735</guid>
      <dc:creator />
      <dc:date>2013-01-14T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420928#M156736</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;Use max(MonthName(Datefield)) function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a sample file? Am not clear in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420928#M156736</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-01-14T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420929#M156737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Week(max(Date)) and Year(max(Date)) looks like they'd do the trick. Alternatively, once you've selected the date, you can use Select Possible actions on your week and year fields. Either approach should work (I like the second one better). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420929#M156737</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2013-01-14T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420930#M156738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do the date selection first and then the year and month selection you should get the right month and year.&lt;/P&gt;&lt;P&gt;Add three actions to your button.&amp;nbsp; The first action:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Action : Select in Field 'Date'&amp;nbsp; =Max(date(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;The second action Select in Field 'Year' =Max(Year(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;The third action Select in Field 'Month' =max(Month(Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420930#M156738</guid>
      <dc:creator />
      <dc:date>2013-01-14T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent date / Year / Week</title>
      <link>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420931#M156739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can apply the same logic you have used for the date selection&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Action : Select in Field 'Year'&amp;nbsp; =Year(Max(date(Date)))&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;Action : Select in Field 'Week'&amp;nbsp; =Week(date(Date))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 15:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-recent-date-Year-Week/m-p/420931#M156739</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-01-14T15:00:39Z</dc:date>
    </item>
  </channel>
</rss>

