<?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 Return the max month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340393#M493832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works partly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't have a month selected though, and the current year is only populated to May like the above table, how do I make it identify May as the max month instead of December.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, since i'm working in the financial year, I need to switch December for June, how would I go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 02:29:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-09T02:29:00Z</dc:date>
    <item>
      <title>Return the max month</title>
      <link>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340391#M493830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I bring in a set of data that contains date placeholders for future data, i.e. For the current year the records all exist, but the values are&amp;nbsp; 0&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="321" style="border-image: initial; height: 321px; width: 219px; border-width: 1px; border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Month&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6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;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and there are a number of years in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no issue capturing the month when it has been selected, however when none is selected, I am struggling to have a text box display Mar, since Mar is the current month.&amp;nbsp; I realise I can just use MONTH(Today()), but I also then need it to display the max month when i select a range of months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need to capture the value of an expression for the current max month..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a reduced version of the report.&amp;nbsp; Whart I want the two text boxes to show is the Month, which is Mar, and the value for the 2011-12 value of Mar, which is 82.25%.&amp;nbsp; If you highlight Jan-Feb, then it should Show Feb, and the value for Feb.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340391#M493830</guid>
      <dc:creator />
      <dc:date>2012-05-08T06:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Return the max month</title>
      <link>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340392#M493831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mgreen85,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let try this expression for your text objects:&lt;/P&gt;&lt;P&gt;1. Show max month :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =PICK(MAX(DateMonth),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec')&lt;/P&gt;&lt;P&gt;2. Show value for max month :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =NUM(Avg({$&amp;lt;data_measure={'Actual'}, KPIDate = P(DateValue), month = {$(=PICK(MAX(DateMonth),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'))} &amp;gt;}data_value)/100,'###.##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the sample attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this one help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 09:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340392#M493831</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2012-05-08T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Return the max month</title>
      <link>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340393#M493832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works partly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't have a month selected though, and the current year is only populated to May like the above table, how do I make it identify May as the max month instead of December.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, since i'm working in the financial year, I need to switch December for June, how would I go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 02:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-the-max-month/m-p/340393#M493832</guid>
      <dc:creator />
      <dc:date>2012-05-09T02:29:00Z</dc:date>
    </item>
  </channel>
</rss>

