<?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 Max Month only with Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Month-only-with-Data/m-p/270054#M1206723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, you can do this with either set analysis or an IF statement. So, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;max(if(sum(Revenue)&amp;gt;0,month)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The following set analysis should also work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;max({&amp;lt;month={"=sum(Revenue)&amp;gt;0"}&amp;gt;} month)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 21:28:29 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-08-09T21:28:29Z</dc:date>
    <item>
      <title>Max Month only with Data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-only-with-Data/m-p/270053#M1206722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want a text box to return the Max(month) or latest month which has data in it.&lt;/P&gt;&lt;P&gt;The problem is when I use the max (month) in always returns 12/Dec because I have loaded in a mapping table with months/dates going out to 2015.&lt;/P&gt;&lt;P&gt;Is there a way of writing my expression such that Max(month) will return only the latest month for which revenues exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 18:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-only-with-Data/m-p/270053#M1206722</guid>
      <dc:creator />
      <dc:date>2010-08-09T18:15:06Z</dc:date>
    </item>
    <item>
      <title>Max Month only with Data</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-only-with-Data/m-p/270054#M1206723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, you can do this with either set analysis or an IF statement. So, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;max(if(sum(Revenue)&amp;gt;0,month)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The following set analysis should also work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;max({&amp;lt;month={"=sum(Revenue)&amp;gt;0"}&amp;gt;} month)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 21:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-only-with-Data/m-p/270054#M1206723</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-08-09T21:28:29Z</dc:date>
    </item>
  </channel>
</rss>

