<?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 Selecting Top N Transactions from a transaction file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325183#M94807</link>
    <description>Hi, I have a transaction file containing cust_id and tran_amt columns, i want to pick top 3 transaction made by each cust_id. I have tried using tMap, tAggregated, but not able to get the correct results. can you suggest how do i achieve this.&lt;BR /&gt;Input Data&lt;BR /&gt;cust_id|tran_amt&lt;BR /&gt;1001|23&lt;BR /&gt;1001|24&lt;BR /&gt;1001|25&lt;BR /&gt;1004|67&lt;BR /&gt;1004|68&lt;BR /&gt;1004|69&lt;BR /&gt;1004|70&lt;BR /&gt;1004|71&lt;BR /&gt;1002|45&lt;BR /&gt;1002|46&lt;BR /&gt;1002|47&lt;BR /&gt;1002|48&lt;BR /&gt;1002|49&lt;BR /&gt;1003|55&lt;BR /&gt;1003|56&lt;BR /&gt;1003|57&lt;BR /&gt;1003|58&lt;BR /&gt;===============&lt;BR /&gt;Output Data&lt;BR /&gt;1001|25&lt;BR /&gt;1001|24&lt;BR /&gt;1001|23&lt;BR /&gt;1002|49&lt;BR /&gt;1002|48&lt;BR /&gt;1002|47&lt;BR /&gt;1003|58&lt;BR /&gt;1003|57&lt;BR /&gt;1003|56&lt;BR /&gt;1004|70&lt;BR /&gt;1004|69&lt;BR /&gt;1004|68&lt;BR /&gt;Regards&lt;BR /&gt;Sanjay</description>
    <pubDate>Sun, 14 Jul 2013 09:02:43 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-07-14T09:02:43Z</dc:date>
    <item>
      <title>Selecting Top N Transactions from a transaction file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325183#M94807</link>
      <description>Hi, I have a transaction file containing cust_id and tran_amt columns, i want to pick top 3 transaction made by each cust_id. I have tried using tMap, tAggregated, but not able to get the correct results. can you suggest how do i achieve this.&lt;BR /&gt;Input Data&lt;BR /&gt;cust_id|tran_amt&lt;BR /&gt;1001|23&lt;BR /&gt;1001|24&lt;BR /&gt;1001|25&lt;BR /&gt;1004|67&lt;BR /&gt;1004|68&lt;BR /&gt;1004|69&lt;BR /&gt;1004|70&lt;BR /&gt;1004|71&lt;BR /&gt;1002|45&lt;BR /&gt;1002|46&lt;BR /&gt;1002|47&lt;BR /&gt;1002|48&lt;BR /&gt;1002|49&lt;BR /&gt;1003|55&lt;BR /&gt;1003|56&lt;BR /&gt;1003|57&lt;BR /&gt;1003|58&lt;BR /&gt;===============&lt;BR /&gt;Output Data&lt;BR /&gt;1001|25&lt;BR /&gt;1001|24&lt;BR /&gt;1001|23&lt;BR /&gt;1002|49&lt;BR /&gt;1002|48&lt;BR /&gt;1002|47&lt;BR /&gt;1003|58&lt;BR /&gt;1003|57&lt;BR /&gt;1003|56&lt;BR /&gt;1004|70&lt;BR /&gt;1004|69&lt;BR /&gt;1004|68&lt;BR /&gt;Regards&lt;BR /&gt;Sanjay</description>
      <pubDate>Sun, 14 Jul 2013 09:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325183#M94807</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-14T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Top N Transactions from a transaction file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325184#M94808</link>
      <description>Use tFilterRow with the advanced expression:
&lt;BR /&gt;Numeric.sequence(input_row.cust_id,1,1)&amp;lt;4</description>
      <pubDate>Sun, 14 Jul 2013 11:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325184#M94808</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-07-14T11:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Top N Transactions from a transaction file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325185#M94809</link>
      <description>Got it thanks Alevy...posted at 2 locations to get quick answers</description>
      <pubDate>Sun, 14 Jul 2013 13:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Selecting-Top-N-Transactions-from-a-transaction-file/m-p/2325185#M94809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-14T13:32:48Z</dc:date>
    </item>
  </channel>
</rss>

