<?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: Last Month According to Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042266#M466151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make this future proof you might want to consider using Date field instead of MonthNum. The reason i say this is because when you have 2016, Max(MonthNum) may still equal 12 if you have last year's December data, but Date will include year information and will always show the max based on the year and month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date={"$(=Date(Max({&amp;lt;[Entry Type]={Sales}, Value = {'&amp;gt;0'}&amp;gt;}Date)))"},[Entry Type]={'Sales'}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just something to think about &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 09:27:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-16T09:27:52Z</dc:date>
    <item>
      <title>Last Month According to Data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042264#M466149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the below data,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data latest month.PNG" class="jive-image image-1" src="/legacyfs/online/114776_Data latest month.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to acquire the latest Month Sales means which is not '0',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried Expression like this,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;MonthNum={'$(=Max(MonthNum))'},[Entry Type]={'Sales'}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not working!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;MonthNum={'6'},[Entry Type]={'Sales'}&amp;gt;}Value) like this,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042264#M466149</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-16T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month According to Data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042265#M466150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;MonthNum={"$(=Max({&amp;lt;[Entry Type]={Sales}, Value = {'&amp;gt;0'}&amp;gt;}MonthNum))"},[Entry Type]={'Sales'}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042265#M466150</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-16T09:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month According to Data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042266#M466151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make this future proof you might want to consider using Date field instead of MonthNum. The reason i say this is because when you have 2016, Max(MonthNum) may still equal 12 if you have last year's December data, but Date will include year information and will always show the max based on the year and month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date={"$(=Date(Max({&amp;lt;[Entry Type]={Sales}, Value = {'&amp;gt;0'}&amp;gt;}Date)))"},[Entry Type]={'Sales'}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just something to think about &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042266#M466151</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-16T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month According to Data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042267#M466152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes for that i m Writing Like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthNum={"$(=Max({&amp;lt;[Entry Type]={Sales}, Value = {'&amp;gt;0'}&amp;gt;}MonthNum))"},[Entry Type]={'Sales'},Year={'$(=Max(Year))'}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But your expression looks fine Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042267#M466152</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-16T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month According to Data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042268#M466153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthNum won't consider the Max(Year) unless you tell it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;MonthNum={"$(=Max({&amp;lt;[Entry Type]={Sales}, Value = {'&amp;gt;0'}&lt;SPAN style="color: #ff0000;"&gt;, Year = {'$(Max(Year))'}&lt;/SPAN&gt;&amp;gt;}MonthNum))"},[Entry Type]={'Sales'},Year={'$(=Max(Year))'}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-According-to-Data/m-p/1042268#M466153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-16T09:46:43Z</dc:date>
    </item>
  </channel>
</rss>

