<?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: Set analysis expression for max(year) and max(month) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129511#M890417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;in your case for example let say you want to display aug-2016&lt;/P&gt;&lt;P&gt;so max year will return 2016&lt;/P&gt;&lt;P&gt;but max month calculated alone will probably return December &lt;/P&gt;&lt;P&gt;so there are 2 solution : &lt;/P&gt;&lt;P&gt;1. create a YearMonth field and use it in the set analysis&lt;/P&gt;&lt;P&gt;2. use this expression &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;=Count({&amp;lt;CDTS_Year={$(=Max(CDTS_Year))},CDTS_Month={&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;CDTS_Year={$(=Max(CDTS_Year))}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CDTS_Month&lt;/SPAN&gt;))},&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}&amp;gt;}EID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2016 07:05:00 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2016-08-18T07:05:00Z</dc:date>
    <item>
      <title>Set analysis expression for max(year) and max(month)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129509#M890415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one straight table with Hour and DOW dimensions.My requirement is by default need to show the max(year) and max(month) data.&lt;/P&gt;&lt;P&gt;After user selection of particular year and particular month need to show that corresponding month data.At a time it need to show only one year and one month data.I have used the below expression but only with year its working by adding max(month) condition it does not show anything.What wrong in the below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;CDTS_Year={$(=Max(CDTS_Year))},CDTS_Month={&lt;SPAN style="font-size: 13.3333px;"&gt;$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;CDTS_Month&lt;/SPAN&gt;))},&lt;/SPAN&gt;CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}&amp;gt;}EID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129509#M890415</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for max(year) and max(month)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129510#M890416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhavvi,&lt;/P&gt;&lt;P&gt;Max Month, if you have more than one year is 12.&lt;/P&gt;&lt;P&gt;You have to select max month of max year. You can use MonthName function on script and get max(MonthName) or use this set expression:&lt;/P&gt;&lt;P&gt;{$&amp;lt;CDTS_Year= {$(=max(CDTS_Year))}, &lt;SPAN style="font-size: 13.3333px;"&gt;CDTS_Month&lt;/SPAN&gt;= {"=$(=max({&amp;lt;Year={$(=max(CDTS_Year))}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;CDTS_Month&lt;/SPAN&gt;))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129510#M890416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T07:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for max(year) and max(month)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129511#M890417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;in your case for example let say you want to display aug-2016&lt;/P&gt;&lt;P&gt;so max year will return 2016&lt;/P&gt;&lt;P&gt;but max month calculated alone will probably return December &lt;/P&gt;&lt;P&gt;so there are 2 solution : &lt;/P&gt;&lt;P&gt;1. create a YearMonth field and use it in the set analysis&lt;/P&gt;&lt;P&gt;2. use this expression &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;=Count({&amp;lt;CDTS_Year={$(=Max(CDTS_Year))},CDTS_Month={&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;CDTS_Year={$(=Max(CDTS_Year))}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CDTS_Month&lt;/SPAN&gt;))},&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}&amp;gt;}EID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129511#M890417</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2016-08-18T07:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for max(year) and max(month)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129512#M890418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to above to suggestions, I would also check if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CDTS_Month&lt;/SPAN&gt;is a field with Numerical formatting or text formatting. For that what I mean is, does &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CDTS_Month contains 1,2, 3, 4... or Jan, Feb, Mar, Apr....If it later is true, I would suggest something like this in the scrip:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CDTS_Month,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CDTS_Month) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CDTS_Month_Num&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Count({&amp;lt;CDTS_Year={$(=Max(CDTS_Year))},CDTS_MonthNum={&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=Max(&lt;SPAN style="font-style: inherit; font-size: 13px;"&gt;{&amp;lt;CDTS_Year={$(=Max(CDTS_Year))}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CDTS_MonthNum&lt;/SPAN&gt;&lt;/SPAN&gt;))},&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;CALL_SOURCE={'ANI/ALI','PHONE','WALK-IN'}&amp;gt;} EID)&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;BR /&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129512#M890418</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-18T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for max(year) and max(month)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129513#M890419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much its working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-max-year-and-max-month/m-p/1129513#M890419</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2016-08-18T07:29:42Z</dc:date>
    </item>
  </channel>
</rss>

