<?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 Concat - limit returned Rows to newest row only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276082#M103013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry cant share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this and any time I introduce only or max etc I get nothing back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 23:46:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-28T23:46:14Z</dc:date>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276076#M103007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know how to limit this to 1 returned row?&amp;nbsp; -&amp;nbsp; the newest one (based on WORK_LOG_SUBMIT_DATE)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= concat( { &amp;lt;WORK_LOG_TYPE = {'Customer Status Update'&amp;nbsp; }&amp;gt;*&amp;lt;Follow_Up_Required = {'Yes'}&amp;gt;* &amp;lt; Company -= {'Company A' }&amp;gt;*&amp;lt;[Ticket Status]={'Open' }&amp;gt;}&amp;nbsp; distinct&amp;nbsp;&amp;nbsp; [Incident Number] &amp;amp;' | '&amp;amp; Company &amp;amp;' | '&amp;amp; subfield(Site, ':',2) &amp;amp;' | '&amp;amp;'Pri:'&amp;amp; Priority &amp;amp;' | '&amp;amp; left(Description,95)&amp;amp;' | '&amp;amp; 'Submit Date:'&amp;amp;[Submit Date]&amp;amp;' | ' &amp;amp;'Assignee:'&amp;amp; Assignee &amp;amp;' | ' &amp;amp;'AgeDays:'&amp;amp; num(AgeDaysExact,'##.##')&amp;amp; chr(13)&amp;amp;'Next Steps:&amp;nbsp; '&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; SPLIT_SUBMITTER &amp;amp;'&amp;nbsp; -&amp;nbsp; '&amp;amp; WORK_LOG_SUBMIT_DATE &amp;amp; chr(13) &amp;amp; DETAILED_DESCRIPTION&amp;nbsp; ,chr(13)&amp;amp;'________________'&amp;amp;chr(13)&amp;amp;'________________'&amp;amp;chr(13) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this executes it returns 2 or more rows because&amp;nbsp; these 3 fields below can have more than 1 value for the record ( all the rest are the same for each record but because of this, "Distinct" does not limit returned rows to one &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt; SPLIT_SUBMITTER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WORK_LOG_SUBMIT_DATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DETAILED_DESCRIPTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 03:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276076#M103007</guid>
      <dc:creator />
      <dc:date>2011-10-26T03:16:25Z</dc:date>
    </item>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276077#M103008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Only function. Instead of SPLIT_SUBMITTER use Only(SPLIT_SUBMITTER).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 08:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276077#M103008</guid>
      <dc:creator />
      <dc:date>2011-10-26T08:58:57Z</dc:date>
    </item>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276078#M103009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kirin - tried it, but once I introduce an "only" or a "max" to any field it returns nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 13:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276078#M103009</guid>
      <dc:creator />
      <dc:date>2011-10-26T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276079#M103010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding the below set analysis to your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;WORK_LOG_SUBMIT_DATE={"$(=max(WORK_LOG_SUBMIT_DATE))"}&amp;gt;}SPLIT_SUBMITTER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 13:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276079#M103010</guid>
      <dc:creator />
      <dc:date>2011-10-26T13:14:22Z</dc:date>
    </item>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276080#M103011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kirin am I doing this right? got nothing back&lt;/P&gt;&lt;P&gt;= concat ( { &amp;lt;WORK_LOG_TYPE = {'Customer Status Update'&amp;nbsp; }&amp;gt;*&amp;lt;Follow_Up_Required = {'Yes'}&amp;gt;* &amp;lt; Company -= {'Company A' }&amp;gt;*&amp;lt;[Ticket Status]={'Open' }&amp;gt;*&amp;lt;WORK_LOG_SUBMIT_DATE&amp;gt;}&amp;nbsp; Only({&amp;lt;WORK_LOG_SUBMIT_DATE={"$(=max(WORK_LOG_SUBMIT_DATE))"}&amp;gt;}SPLIT_SUBMITTER) * (&amp;nbsp; [Incident Number] )&amp;amp;' | '&amp;amp; Company &amp;amp;' | '&amp;amp; subfield(Site, ':',2) &amp;amp;' | '&amp;amp;'Pri:'&amp;amp; Priority &amp;amp;' | '&amp;amp; left(Description,95)&amp;amp;' | '&amp;amp; 'Submit Date:'&amp;amp;[Submit Date]&amp;amp;' | ' &amp;amp;'Assignee:'&amp;amp; Assignee &amp;amp;' | ' &amp;amp;'AgeDays:'&amp;amp; num(AgeDaysExact,'##.##')&amp;amp; chr(13)&amp;amp;'Next Steps:&amp;nbsp; '&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; (SPLIT_SUBMITTER) &amp;amp;'&amp;nbsp; -&amp;nbsp; '&amp;amp; WORK_LOG_SUBMIT_DATE &amp;amp; chr(13) &amp;amp; (DETAILED_DESCRIPTION ) ,chr(13)&amp;amp;'________________'&amp;amp;chr(13)&amp;amp;'________________'&amp;amp;chr(13) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 13:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276080#M103011</guid>
      <dc:creator />
      <dc:date>2011-10-26T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276081#M103012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all if you are tryingto have multiple condition in set analysis you can use them with a ',' (comma) seperator instead of '&amp;gt;*&amp;lt;'. To have expression in and expression (only in concat) you need to have aggr function. But first lets fix the multiple valued functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to break this down to the three fields with multiple records. Try the below expression and check if the result is desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;WORK_LOG_SUBMIT_DATE={"$(=max(WORK_LOG_SUBMIT_DATE))"}&amp;gt;} Distinct SPLIT_SUBMITTER&amp;amp;'|'&amp;amp;WORK_LOG_SUBMIT_DATE&amp;amp;'|'&amp;amp;DETAILED_DESCRIPTION ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would tell us for recent work_log_submit_date if these fields have one or more values. Accordingly we can modify the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the document?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 14:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276081#M103012</guid>
      <dc:creator />
      <dc:date>2011-10-26T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Concat - limit returned Rows to newest row only</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276082#M103013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry cant share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this and any time I introduce only or max etc I get nothing back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 23:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-limit-returned-Rows-to-newest-row-only/m-p/276082#M103013</guid>
      <dc:creator />
      <dc:date>2011-10-28T23:46:14Z</dc:date>
    </item>
  </channel>
</rss>

