<?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: How do we get max year values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138404#M910874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Thank you guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 07:58:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-07T07:58:20Z</dc:date>
    <item>
      <title>How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138398#M910868</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;I have 2016 and 2015 years records in my table.&lt;/P&gt;&lt;P&gt;i Need to display only max year months datA in bar graph that too last 3 months&lt;/P&gt;&lt;P&gt;so I filter the data in script level where year(asofdt)&amp;gt;2015.&lt;/P&gt;&lt;P&gt;Then i am getting the bar with set analysis. As of now it is ok but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this application will get 2017 data, that time how to get max year values dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease help help me to solve&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/How-do-we-get-max-year-values/m-p/1138398#M910868</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138399#M910869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for current year data, you can try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Where year(asofdt)=&lt;STRONG&gt;Year(today())&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is dependent on data, you could create a variable like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(asofdt) as MaxDt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From &amp;lt;&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;vMaxYear&lt;/STRONG&gt;=Peek('MaxDt');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Then ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From &amp;lt;&amp;gt; Where year(asofdt)=&lt;/SPAN&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;'$(vMaxYear)';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138399#M910869</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-06-07T05:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138400#M910870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where year(asofdt)= max(Year(asofdt))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138400#M910870</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-07T05:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138401#M910871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add a dynamic mechanism to handle upcoming years. Tresco suggested a good way but it is half done.&lt;/P&gt;&lt;P&gt;You need to handle both max YEAR as well as Today. The reason behind this is what if the data is having only data till 2016 and you are running the report in 2017 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138401#M910871</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2016-06-07T05:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138402#M910872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want latest 3 months or maximum date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 05:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138402#M910872</guid>
      <dc:creator />
      <dc:date>2016-06-07T05:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138403#M910873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MaxYear:&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;Year(Max(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;STRONG&gt;asofdt)) as MaxYear&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxYear = peek('&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;MaxYear&lt;/SPAN&gt;',0,'&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;MaxYear&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where year(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;STRONG&gt;asofdt)='$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxYear&lt;/SPAN&gt;)'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 06:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138403#M910873</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-07T06:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138404#M910874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Thank you guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138404#M910874</guid>
      <dc:creator />
      <dc:date>2016-06-07T07:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get max year values</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138405#M910875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;It's working....! Thanks you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-max-year-values/m-p/1138405#M910875</guid>
      <dc:creator />
      <dc:date>2016-06-07T07:58:39Z</dc:date>
    </item>
  </channel>
</rss>

