<?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: Help needed on Max(Month) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018159#M934841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to have date filters. The expression will still work based on selections you make in Year and Month fields. Try it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 12:04:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-24T12:04:28Z</dc:date>
    <item>
      <title>Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018154#M934836</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;Hope all are doing good...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help to solve one of the issue that i am facing.&lt;/P&gt;&lt;P&gt;I have a date field in &lt;STRONG&gt;DD/MM/YYYY&lt;/STRONG&gt; and i have retrieved Month and Year from that field.&lt;/P&gt;&lt;P&gt;Now the issue is that when i am writing the Max(Month) expression to select Maximum month it is returning Month number instead of Month Name.As a result the value is not getting selected in the month field.&lt;/P&gt;&lt;P&gt;However I have used Month(Max(Date)) to get maximum month and i am able to select maximum month with that expression.&lt;/P&gt;&lt;P&gt;But at the same time for YTD calculation i have used &lt;STRONG&gt;Sum({&amp;lt;Year={"$(=Max(Year))"},Month={"$(=Month(Max(Date)))"}&amp;gt;}Sales) which returning '0'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the correct approach to resolve the issue.&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;Best Regards,&lt;/P&gt;&lt;P&gt;Nani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 11:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018154#M934836</guid>
      <dc:creator />
      <dc:date>2016-02-24T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018155#M934837</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;= Sum({&amp;lt;Year={'$=Max(Year)'},Month={'$(=Month(Max(Date)))'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 11:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018155#M934837</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-02-24T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018156#M934838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you do this with the dates instead?&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;Date = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(MonthEnd(Max(Date)), 'DD/MM/YYYY')&lt;/STRONG&gt;)"}Year = ,Month = &amp;gt;}Sales) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 11:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018156#M934838</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018157#M934839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year={"$(=Max(Year))"},Month={"&amp;lt;=$(=Month(Max(Date)))"}&amp;gt;}Sales) expression. But no luck it is returning 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018157#M934839</guid>
      <dc:creator />
      <dc:date>2016-02-24T12:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018158#M934840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. But we dont have Date filters on the dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018158#M934840</guid>
      <dc:creator />
      <dc:date>2016-02-24T12:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018159#M934841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to have date filters. The expression will still work based on selections you make in Year and Month fields. Try it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018159#M934841</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T12:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018160#M934842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this at script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year*12+Month(Date) as MonthNumer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then this expression:&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;Month={'$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;MonthNumer))'} &lt;/SPAN&gt;}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018160#M934842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T12:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018161#M934843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Now the issue is that when i am writing the Max(Month) expression to select Maximum month it is returning Month number instead of Month Name.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;When you use Max(Month), max() returns integer only, will not return month name&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018161#M934843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018162#M934844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure sunny i will try. But my question is we have ignored the selections in Yearanf month in the expression right. &lt;/P&gt;&lt;P&gt;Do you still think that this expression will work out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018162#M934844</guid>
      <dc:creator />
      <dc:date>2016-02-24T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018163#M934845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah i realized and used Month(Max(Date)) to get the Max month. But that is not working as expected when i am using for YTD with the below expression&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;Year={"$(=Max(Year))"},Month={"&amp;lt;=$(=Month(Max(Date)))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018163#M934845</guid>
      <dc:creator />
      <dc:date>2016-02-24T12:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018164#M934846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, it will work as you have ignored Year &amp;amp; Month &lt;STRONG&gt;not Date&lt;/STRONG&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018164#M934846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T12:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018165#M934847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am certain it will and reason is by making selection in year and month, your max date will also change which will drive this expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018165#M934847</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T12:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018166#M934848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you are looking for a YTD expression and not MTD. For YTD, try this:&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;Date = {"$(='&amp;gt;=' &amp;amp; Date(&lt;SPAN style="color: #ff0000;"&gt;YearStart&lt;/SPAN&gt;(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;STRONG style="font-style: inherit;"&gt;Date(MonthEnd(Max(Date)), 'DD/MM/YYYY')&lt;/STRONG&gt;)"}Year = ,Month = &amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018166#M934848</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T12:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018167#M934849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Balraj and Sunny.&lt;/P&gt;&lt;P&gt;I will try these options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018167#M934849</guid>
      <dc:creator />
      <dc:date>2016-02-24T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018168#M934850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems either we did not get you or you are not able to explain&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;Check these threads, will help you a lot..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9144"&gt;Set Analysis for Rolling Periods&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9162"&gt;Set Analysis for certain Point in Time&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018168#M934850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018169#M934851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How has your Month data been created? It should be a dual field with both text and number parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you create a chart with Month as a Dimension and Num(Month) and text(Month) as Expressions.&lt;/P&gt;&lt;P&gt;If you dates are dual you will have both numeric and text values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018169#M934851</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-02-24T12:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed on Max(Month)</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018170#M934852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. It worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Balraj and all for your valuable inputs. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-on-Max-Month/m-p/1018170#M934852</guid>
      <dc:creator />
      <dc:date>2016-02-24T12:53:38Z</dc:date>
    </item>
  </channel>
</rss>

