<?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: Maxstring in Search the Community</title>
    <link>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1885267#M912</link>
    <description>&lt;P&gt;For a Date it would be Max(), not MaxString().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;year(Max(datDatum))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 19:44:08 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2022-01-25T19:44:08Z</dc:date>
    <item>
      <title>Maxstring</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1884932#M908</link>
      <description>&lt;P&gt;I have a timestamp for every activity that is made in an object. I would like to have a table that only shows the latest year of activity per objectID.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Now it looks like this:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;ObjectID&amp;nbsp; &amp;nbsp;datDatum&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2011-02-15 12:00:00 AM&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2010-04-18 12:00:00 AM&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2009-11-20 12:00:00 AM&lt;/P&gt;
&lt;P&gt;46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2017-08-26 14:00:00 AM&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;And I want it to look like this:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;ObjectID&amp;nbsp; &amp;nbsp;datDatum&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2011&lt;/P&gt;
&lt;P&gt;46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2017&lt;/P&gt;
&lt;P&gt;If I use =year(datDatum) in the chart calculated dimension the result is the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;ObjectID&amp;nbsp; &amp;nbsp;datDatum&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2011&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2010&lt;/P&gt;
&lt;P&gt;38&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2009&lt;/P&gt;
&lt;P&gt;46&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2017&lt;/P&gt;
&lt;P&gt;I have tried&amp;nbsp;to elaborate with maxstring but cant make it work, i only get error in the calculated dimension as a result. Can anyone please help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 10:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1884932#M908</guid>
      <dc:creator>AnnaQlik</dc:creator>
      <dc:date>2022-01-25T10:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Maxstring</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1885267#M912</link>
      <description>&lt;P&gt;For a Date it would be Max(), not MaxString().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;year(Max(datDatum))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1885267#M912</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-01-25T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Maxstring</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1885353#M913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68246"&gt;@AnnaQlik&lt;/a&gt;&amp;nbsp; -&amp;nbsp; Rob's Solution works fine.&lt;/P&gt;
&lt;P&gt;Attaching the file below.&lt;/P&gt;
&lt;P&gt;if you're not able to open the attached, then copy the script below.&lt;/P&gt;
&lt;P&gt;Another Scripting approach(My fav Approach - to do as much as possible at the script level to minimize UI expressions) :&lt;/P&gt;
&lt;P&gt;data:&lt;BR /&gt;load *,&lt;BR /&gt;num(left(datDatum, 4)) as year;&lt;BR /&gt;load * inline [&lt;BR /&gt;ObjectID, datDatum&lt;BR /&gt;38, 2011-02-15 12:00:00 AM&lt;BR /&gt;38, 2010-04-18 12:00:00 AM&lt;BR /&gt;38, 2009-11-20 12:00:00 AM&lt;BR /&gt;46, 2017-08-26 14:00:00 AM&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;max:&lt;BR /&gt;load ObjectID,&lt;BR /&gt;max(year) as max_year&lt;BR /&gt;resident data&lt;BR /&gt;group by ObjectID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 923px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70979iBEFF28F831D9113C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 01:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Maxstring/m-p/1885353#M913</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2022-01-26T01:36:45Z</dc:date>
    </item>
  </channel>
</rss>

