<?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 Set Analysis Max Year, Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767729#M272675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to do something that seems relatively simple but i cannot get it to work. I want to calculate the sum of a value only for the maximum year and month of the current selection. This is the expression i'm using,&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YEAR = {$(=max(YEAR))}, MONTH = {$(=max(MONTH))}&amp;gt;} Stock_Value_CY) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I;ve broken the expression in its compnenets and although the expression for max year works, the expression for max month doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody can see what i;m doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 09:53:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-18T09:53:39Z</dc:date>
    <item>
      <title>Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767729#M272675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to do something that seems relatively simple but i cannot get it to work. I want to calculate the sum of a value only for the maximum year and month of the current selection. This is the expression i'm using,&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YEAR = {$(=max(YEAR))}, MONTH = {$(=max(MONTH))}&amp;gt;} Stock_Value_CY) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I;ve broken the expression in its compnenets and although the expression for max year works, the expression for max month doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody can see what i;m doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 09:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767729#M272675</guid>
      <dc:creator />
      <dc:date>2014-11-18T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767730#M272676</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;Try in ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YEAR = {"$(=max(YEAR))"}, MONTH = {"$(=max(MONTH))"}&amp;gt;} Stock_Value_CY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 09:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767730#M272676</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-18T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767731#M272677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your sample apps please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 09:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767731#M272677</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-18T09:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767732#M272678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petrovic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression looks good , i think some issue with month field.Can you please share your app?&lt;/P&gt;&lt;P&gt;Try =max(MONTH) in a textbox and see what output you are getting?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767732#M272678</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-11-18T10:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767733#M272679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already tried this syntax, it doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767733#M272679</guid>
      <dc:creator />
      <dc:date>2014-11-18T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767734#M272680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done this and it gives me back the value i want. it is numeric, integer btw.&lt;/P&gt;&lt;P&gt;I've also tried making the calculations into variables and use the variables but it still doesn;t work. A set analysis expression using the year variable works but the month doesn;t.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767734#M272680</guid>
      <dc:creator />
      <dc:date>2014-11-18T10:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767735#M272681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't upload the app because I'm working on a document taken from the customer which is too big to upload. I do not have a smaller data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767735#M272681</guid>
      <dc:creator />
      <dc:date>2014-11-18T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767736#M272682</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;i guess u made field mistakes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YEAR = {$(=max(YEAR))}, MONTH = {$(=max(MONTH))}&amp;gt;} Stock_Value_CY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u have the field called month in capital letters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767736#M272682</guid>
      <dc:creator />
      <dc:date>2014-11-18T10:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767737#M272683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasilis,&lt;/P&gt;&lt;P&gt;=max(year) provide you 2014 , while =max(month) provide you ' - '&lt;/P&gt;&lt;P&gt;Please add the field name from where you are taking the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g =max(month(today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767737#M272683</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-11-18T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767738#M272684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These 2 fields are in capital letters and i've tried pasting the actual field names. The result is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767738#M272684</guid>
      <dc:creator />
      <dc:date>2014-11-18T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767739#M272685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the 2 fields are YEAR and MONTH in capitals. They're both integer and numeric and when used in =max() function they give me the result i want.&lt;/P&gt;&lt;P&gt;I've pasted the MONTH field with no change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result i;m getting is 0, not '-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A set analysis using only max(YEAR) brings me results while an expression with only max(MONTH) brings me 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 10:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767739#M272685</guid>
      <dc:creator />
      <dc:date>2014-11-18T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767740#M272686</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;Can tell us&lt;/P&gt;&lt;P&gt;what value MONTH field contain?&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;What is output of =max(MONTH) in text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Month field try like&lt;/P&gt;&lt;P&gt;=Month(max(MONTH))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=MonthName(max(MONTH))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 11:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767740#M272686</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-18T11:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767741#M272687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create an extra field in your script as&lt;/P&gt;&lt;P&gt;num(Month(Yourdatefield)) as Month#,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and reload the application and write your expression as&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YEAR = {$(=max(YEAR))}, Month# = {$(=max(Month#))}&amp;gt;} Stock_Value_CY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 11:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767741#M272687</guid>
      <dc:creator />
      <dc:date>2014-11-18T11:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767742#M272688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for taking the time to respond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 14:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767742#M272688</guid>
      <dc:creator />
      <dc:date>2014-11-21T14:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Max Year, Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767743#M272689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this.. I've been spending hours for the answer to my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Max-Year-Month/m-p/767743#M272689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-07T17:29:11Z</dc:date>
    </item>
  </channel>
</rss>

