<?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 Maximum Year-Month to be get in a Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Maximum-Year-Month-to-be-get-in-a-Variable/m-p/1244837#M24818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have field [OriginYear-Month] Values are like, 2016-12,2016-11' - - - - 2014, these values getting from sqlserver,&lt;/P&gt;&lt;P&gt;Now requirement is , i need to pick latest year-Month(2016-12) dynamically from field to a variable, and i need to use that variable and evaluate some other months by using Addmonths Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried initially firstsortedvalue at that time i got solution, now its not working ,&lt;/P&gt;&lt;P&gt;Can any one suggest better solution for my requirment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 09:42:16 GMT</pubDate>
    <dc:creator>suresh_qv50</dc:creator>
    <dc:date>2016-12-12T09:42:16Z</dc:date>
    <item>
      <title>Maximum Year-Month to be get in a Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Maximum-Year-Month-to-be-get-in-a-Variable/m-p/1244837#M24818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have field [OriginYear-Month] Values are like, 2016-12,2016-11' - - - - 2014, these values getting from sqlserver,&lt;/P&gt;&lt;P&gt;Now requirement is , i need to pick latest year-Month(2016-12) dynamically from field to a variable, and i need to use that variable and evaluate some other months by using Addmonths Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried initially firstsortedvalue at that time i got solution, now its not working ,&lt;/P&gt;&lt;P&gt;Can any one suggest better solution for my requirment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 09:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Maximum-Year-Month-to-be-get-in-a-Variable/m-p/1244837#M24818</guid>
      <dc:creator>suresh_qv50</dc:creator>
      <dc:date>2016-12-12T09:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Year-Month to be get in a Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Maximum-Year-Month-to-be-get-in-a-Variable/m-p/1244838#M24819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best option I see is create a Year Month from this data using Monthname Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monthname(Makedate(Left(Field,4),Right(Field,2))) as MonthYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can simply use the Max function or Maxstring function to get the maximum month year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 09:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Maximum-Year-Month-to-be-get-in-a-Variable/m-p/1244838#M24819</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-12-12T09:48:00Z</dc:date>
    </item>
  </channel>
</rss>

