<?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: Second value of same id using Apply map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359553#M416861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose your original table is called T&lt;/P&gt;&lt;P&gt;then do the following:&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;mapping&lt;/P&gt;&lt;P&gt;load Column1, FirstSortedValue(Column2,-Column2)&lt;/P&gt;&lt;P&gt;resident T&lt;/P&gt;&lt;P&gt;group by Column1;&lt;/P&gt;&lt;P&gt;drop table T;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 09:32:53 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2017-06-13T09:32:53Z</dc:date>
    <item>
      <title>Removed</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359552#M416860</link>
      <description />
      <pubDate>Wed, 14 Aug 2019 07:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359552#M416860</guid>
      <dc:creator>heena_shaikh</dc:creator>
      <dc:date>2019-08-14T07:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Second value of same id using Apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359553#M416861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose your original table is called T&lt;/P&gt;&lt;P&gt;then do the following:&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;mapping&lt;/P&gt;&lt;P&gt;load Column1, FirstSortedValue(Column2,-Column2)&lt;/P&gt;&lt;P&gt;resident T&lt;/P&gt;&lt;P&gt;group by Column1;&lt;/P&gt;&lt;P&gt;drop table T;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 09:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359553#M416861</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2017-06-13T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Removed</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359554#M416862</link>
      <description />
      <pubDate>Wed, 14 Aug 2019 07:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359554#M416862</guid>
      <dc:creator>heena_shaikh</dc:creator>
      <dc:date>2019-08-14T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Second value of same id using Apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359555#M416863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a mapping table with all values by adding a order information part delimited by a arbitrary delimiter not part of your key values ('|' in my sample). Then you can address first, second, etc mapping value per key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;MAPPING&lt;/P&gt;&lt;P&gt;LOAD A&amp;amp;'|'&amp;amp;AutoNumber(Recno(),A) as A, B&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;A B&lt;/P&gt;&lt;P&gt;1 A&lt;/P&gt;&lt;P&gt;1 B&lt;/P&gt;&lt;P&gt;2 C&lt;/P&gt;&lt;P&gt;3 D&lt;/P&gt;&lt;P&gt;3 E&lt;/P&gt;&lt;P&gt;4 F&lt;/P&gt;&lt;P&gt;] (delimiter is '\t');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD A,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Applymap('MAP', A&amp;amp;'|2', ApplyMap('MAP',A&amp;amp;'|1')) as Test&lt;/P&gt;&lt;P&gt;&amp;nbsp; INLINE&lt;/P&gt;&lt;P&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 09:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359555#M416863</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-13T09:46:57Z</dc:date>
    </item>
    <item>
      <title>Removed</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359556#M416864</link>
      <description />
      <pubDate>Wed, 14 Aug 2019 07:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359556#M416864</guid>
      <dc:creator>heena_shaikh</dc:creator>
      <dc:date>2019-08-14T07:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Second value of same id using Apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359557#M416865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because you are coy-pasting it and '\t' is not working properly in that case. Try using different (comma) separator like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;MAPPING&lt;/P&gt;&lt;P&gt;LOAD A&amp;amp;'|'&amp;amp;AutoNumber(Recno(),A) as A, B&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, D&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, E&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4, F&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD A,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Applymap('MAP', A&amp;amp;'|2', ApplyMap('MAP',A&amp;amp;'|1')) as Test&lt;/P&gt;&lt;P&gt;&amp;nbsp; INLINE&lt;/P&gt;&lt;P&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359557#M416865</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-06-13T10:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Second value of same id using Apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359558#M416866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no tab characters between column headers and field values. Either replace the spaces with a tab character, or change this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;(delimiter is '\t');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;to this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;(delimiter is ' ');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359558#M416866</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-06-13T10:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Second value of same id using Apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359559#M416867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from the sample data you supplied you can take the max group by first column and do the mapping table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359559#M416867</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2017-06-13T10:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Second value of same id using Apply map</title>
      <link>https://community.qlik.com/t5/QlikView/Removed/m-p/1359560#M416868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;MapTable:&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Mapping&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;LastValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;B&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;B&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; A, B &lt;BR /&gt; 1, A &lt;BR /&gt; 1, B &lt;BR /&gt; 2, C &lt;BR /&gt; 3, D &lt;BR /&gt; 3, E &lt;BR /&gt; 4, F]&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;ApplyMap&lt;/SPAN&gt;('MapTable',&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;B&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; A, C &lt;BR /&gt; 1, 12 &lt;BR /&gt; 1, 23 &lt;BR /&gt; 2, 34 &lt;BR /&gt; 3, 45 &lt;BR /&gt; 3, 56 &lt;BR /&gt; 4, 67]&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166609_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removed/m-p/1359560#M416868</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-13T10:47:53Z</dc:date>
    </item>
  </channel>
</rss>

