<?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: Sequence generation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330024#M99156</link>
    <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply , sort is working but I want the results in a separate column &lt;/P&gt;&lt;P&gt;id,name,seq,order&lt;/P&gt;&lt;P&gt;1,a,1,3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lmit&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 11:14:12 GMT</pubDate>
    <dc:creator>lmit</dc:creator>
    <dc:date>2022-10-26T11:14:12Z</dc:date>
    <item>
      <title>Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330022#M99154</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where I have to generate sequence in descending order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say have input like&lt;/P&gt;&lt;P&gt;id,name&lt;/P&gt;&lt;P&gt;1,a&lt;/P&gt;&lt;P&gt;2,b&lt;/P&gt;&lt;P&gt;3,c&lt;/P&gt;&lt;P&gt;1,d&lt;/P&gt;&lt;P&gt;1,e&lt;/P&gt;&lt;P&gt;2,f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my output should be like&lt;/P&gt;&lt;P&gt;id,name,seq&lt;/P&gt;&lt;P&gt;1,a,3&lt;/P&gt;&lt;P&gt;1,d,2&lt;/P&gt;&lt;P&gt;1,e,1&lt;/P&gt;&lt;P&gt;2,b,2&lt;/P&gt;&lt;P&gt;2,f,1&lt;/P&gt;&lt;P&gt;3,c,1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know we can use sequence method which gives acs order but I want in desc order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would appreciate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lmit&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330022#M99154</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2022-10-26T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330023#M99155</link>
      <description>&lt;P&gt;After you use the sequence function to generate a sequence id for each row, sort the rows by id and sequence_id column using tSortRow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330023#M99155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-26T10:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330024#M99156</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply , sort is working but I want the results in a separate column &lt;/P&gt;&lt;P&gt;id,name,seq,order&lt;/P&gt;&lt;P&gt;1,a,1,3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lmit&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 11:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330024#M99156</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2022-10-26T11:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330025#M99157</link>
      <description>&lt;P&gt;You need a more step, do an inner join between two outputs.&lt;/P&gt;&lt;P&gt;one output:&lt;/P&gt;&lt;P&gt;id,name,seq&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another output:&lt;/P&gt;&lt;P&gt;id,seq--&amp;gt;sort rows by id and sequence_id in desc order--&amp;gt;id,order&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do an inner join between these two outputs based on id column, and has the output table:&lt;/P&gt;&lt;P&gt;id,name,seq,order&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 03:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330025#M99157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-27T03:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330026#M99158</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your response , but when am doing inner join with unique match getting only one seq like&lt;/P&gt;&lt;P&gt;id;name;seq;order&lt;/P&gt;&lt;P&gt;1;a;1;3&lt;/P&gt;&lt;P&gt;1;b;2;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if I do all matches getting duplicates and with duplicates after duplicates I used tunqirow to remove the duplicates but still not getting results as I want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please elaborate on the below step you mentioned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another output:&lt;/P&gt;&lt;P&gt;id,seq--&amp;gt;sort rows by id and sequence_id in desc order--&amp;gt;id,order&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you mean to sort the rows with id and seq in desc order ?&lt;/P&gt;&lt;P&gt;can you please help here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lmit&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 18:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330026#M99158</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2022-10-27T18:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330027#M99159</link>
      <description>&lt;P&gt;sorry, it might be a wrong job design in my previous post, I have created an example Job and test it, it has the output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEL0fAAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149368iB72C3BC3E965B461/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEL0fAAH.png" alt="0695b00000YEL0fAAH.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this scenario, I need to group the id column and calculate the total number of each group, then generate a sequence id in desc order for each id group, for details, please see the screenshots. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEL19AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140406i66D31446BFB4538D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEL19AAH.png" alt="0695b00000YEL19AAH.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEL7gAAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146364iDCBFCE8D0A12E3DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEL7gAAH.png" alt="0695b00000YEL7gAAH.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEL85AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138099iC0385341243C5136/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEL85AAH.png" alt="0695b00000YEL85AAH.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEL8KAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137964iDD14EFB50928FDF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEL8KAAX.png" alt="0695b00000YEL8KAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong​&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 03:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330027#M99159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T03:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330028#M99160</link>
      <description>&lt;P&gt;Thanks @Shicong Hong​&amp;nbsp; , it worked&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 08:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330028#M99160</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2022-11-15T08:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sequence generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330029#M99161</link>
      <description>&lt;P&gt;great, thanks for your feedback!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 08:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sequence-generation/m-p/2330029#M99161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T08:51:51Z</dc:date>
    </item>
  </channel>
</rss>

