<?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. :Re: Return Last Text String When Aggregating in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213269#M67041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Use [Claim No] and [Ver No] as dimension and the following as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only(If(Aggr(NODISTINCT Max([Ver No]), [Claim no]) = [Ver No], Status))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 14:37:04 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-04-13T14:37:04Z</dc:date>
    <item>
      <title>Return Last Text String When Aggregating</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213265#M67037</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 this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144pt; border-collapse: collapse;" width="192"&gt;&lt;COLGROUP&gt;&lt;COL span="3" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="background-color: #92d050; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Claim no&lt;/TD&gt;&lt;TD class="xl64" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: #92d050; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Ver No&lt;/TD&gt;&lt;TD class="xl64" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: #92d050; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;LD000111&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;LD000111&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;LD000111&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Ld000222&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Ld000222&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Ld000222&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I wish to aggregate into the below table by returning the MAX version number (Which i have) and the corresponding Text field. how do i get the corresponding text field??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144pt; border-collapse: collapse;" width="192"&gt;&lt;COLGROUP&gt;&lt;COL span="3" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl66" height="20" style="background-color: #92d050; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Claim no&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: #92d050; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Ver No&lt;/TD&gt;&lt;TD class="xl66" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: #92d050; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;LD000111&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Ld000222&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Open&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 11:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213265#M67037</guid>
      <dc:creator />
      <dc:date>2011-04-13T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Return Last Text String When Aggregating</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213266#M67038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;load&lt;BR /&gt;claim_no,&lt;BR /&gt;max(ver_no),&lt;BR /&gt;status&lt;BR /&gt;resident table_name&lt;BR /&gt;group by claim_no&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 11:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213266#M67038</guid>
      <dc:creator />
      <dc:date>2011-04-13T11:51:16Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Return Last Text String When Aggregating</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213267#M67039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a two step operation.&lt;/P&gt;&lt;P&gt;First Agregate the data to get the last version.&lt;/P&gt;&lt;P&gt;Aggr_table:&lt;/P&gt;&lt;P&gt;load claim_no,&lt;/P&gt;&lt;P&gt;max(ver_no) as maxverno,&lt;/P&gt;&lt;P&gt;resident table_name&lt;/P&gt;&lt;P&gt;group by claim_no;&lt;/P&gt;&lt;P&gt;then :&lt;/P&gt;&lt;P&gt;left join(Aggr_table)&lt;/P&gt;&lt;P&gt;load claim_no,&lt;/P&gt;&lt;P&gt;ver_no as maxverno,&lt;/P&gt;&lt;P&gt;status&lt;/P&gt;&lt;P&gt;resident table_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213267#M67039</guid>
      <dc:creator />
      <dc:date>2011-04-13T14:03:06Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Return Last Text String When Aggregating</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213268#M67040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way of doing it as an expression??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213268#M67040</guid>
      <dc:creator />
      <dc:date>2011-04-13T14:26:31Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Return Last Text String When Aggregating</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213269#M67041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Use [Claim No] and [Ver No] as dimension and the following as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only(If(Aggr(NODISTINCT Max([Ver No]), [Claim no]) = [Ver No], Status))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213269#M67041</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-13T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Return Last Text String When Aggregating</title>
      <link>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213270#M67042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say:&lt;/P&gt;&lt;P&gt;aggr(if([Ver No]=max(total &amp;lt;[Claim no]&amp;gt; [Ver No]),[Status]),[Claim No],[Ver No])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the same result as what the guy above me said but I can't see it as I'm typing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-Last-Text-String-When-Aggregating/m-p/213270#M67042</guid>
      <dc:creator />
      <dc:date>2011-04-13T14:50:12Z</dc:date>
    </item>
  </channel>
</rss>

