<?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 How to check top row. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349942#M116855</link>
    <description>&lt;P&gt;Hello. I want to check top row from csv data .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source data is like ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;companyID | companyName| oppotunityID&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 12345&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 6789&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2 |&amp;nbsp; &amp;nbsp; BBBB&amp;nbsp; |&amp;nbsp; 11111&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp;|&amp;nbsp; &amp;nbsp; BBBB&amp;nbsp; |&amp;nbsp; 12346&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3 |&amp;nbsp; &amp;nbsp; CC&amp;nbsp; |&amp;nbsp; 22222&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and requirement output like this;&lt;/P&gt;&lt;P&gt;flag |companyID | companyName| oppotunityID&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&amp;nbsp; |&amp;nbsp; &amp;nbsp; 1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 12345&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp;1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 6789&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN&gt;*&amp;nbsp; |&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;|&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;BBBB&amp;nbsp; |&amp;nbsp; 11111&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;|&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;2&amp;nbsp;|&amp;nbsp; &amp;nbsp; BBBB&amp;nbsp; |&amp;nbsp; 12346&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN&gt;*&amp;nbsp; &amp;nbsp;|&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; 3 |&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&amp;nbsp; |&amp;nbsp; 22222&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to mark the first line of data for each companyID.&lt;/P&gt;&lt;P&gt;How can we compare the data before and after a line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:58:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:58:08Z</dc:date>
    <item>
      <title>How to check top row.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349942#M116855</link>
      <description>&lt;P&gt;Hello. I want to check top row from csv data .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source data is like ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;companyID | companyName| oppotunityID&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 12345&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 6789&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2 |&amp;nbsp; &amp;nbsp; BBBB&amp;nbsp; |&amp;nbsp; 11111&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp;|&amp;nbsp; &amp;nbsp; BBBB&amp;nbsp; |&amp;nbsp; 12346&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3 |&amp;nbsp; &amp;nbsp; CC&amp;nbsp; |&amp;nbsp; 22222&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and requirement output like this;&lt;/P&gt;&lt;P&gt;flag |companyID | companyName| oppotunityID&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&amp;nbsp; |&amp;nbsp; &amp;nbsp; 1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 12345&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp;1 |&amp;nbsp; &amp;nbsp; AAAA&amp;nbsp; |&amp;nbsp; 6789&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN&gt;*&amp;nbsp; |&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;|&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;BBBB&amp;nbsp; |&amp;nbsp; 11111&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;|&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;2&amp;nbsp;|&amp;nbsp; &amp;nbsp; BBBB&amp;nbsp; |&amp;nbsp; 12346&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN&gt;*&amp;nbsp; &amp;nbsp;|&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; 3 |&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;CC&amp;nbsp; |&amp;nbsp; 22222&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to mark the first line of data for each companyID.&lt;/P&gt;&lt;P&gt;How can we compare the data before and after a line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349942#M116855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check top row.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349943#M116856</link>
      <description>&lt;P&gt;Hi mkami,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I'm using this SQL statement:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"select companyID, max(oppotunityID)&lt;BR /&gt;from company&lt;BR /&gt;group by companyID"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Mark in&amp;nbsp;tMap&amp;nbsp; and in tDBOutput "Action on&amp;nbsp;data" Update row with new flag.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;MartinD&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 07:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349943#M116856</guid>
      <dc:creator>MartinD1</dc:creator>
      <dc:date>2018-07-13T07:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to check top row.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349944#M116857</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LLz9AAG"&gt;@mhodent&lt;/A&gt;, as explained by 
&lt;A href="https://community.qlik.com/s/profile/0053p000007LMbLAAW"&gt;@mkami&lt;/A&gt; input and output are csv files. 
&lt;BR /&gt; 
&lt;BR /&gt;Use a tMap with the input connected to your input file and the output connected to the output file and each with the corresponding schema. 
&lt;BR /&gt;Declare 3 locale variables (in the middle of the tMap): 
&lt;BR /&gt;- currentId: connected to input flow companyID 
&lt;BR /&gt;- flag: enter the expression 
&lt;BR /&gt;(Var.previousId == null || !Var.previousId.equals(Var.currentId)) ? "*" : "" 
&lt;BR /&gt;- previousId: enter the expression 
&lt;BR /&gt;Var.currentId 
&lt;BR /&gt; 
&lt;BR /&gt;As expressions are executed in the order they are defined, you can easily imagine the result. 
&lt;BR /&gt;Now connect output fields to the corresponding one from the input flow and connect the flag field to the variable Var.flag</description>
      <pubDate>Sat, 14 Jul 2018 07:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349944#M116857</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-07-14T07:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to check top row.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349945#M116858</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Exactly！　Thank you ～ &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; I can get correctly data using tMap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLz9AAG"&gt;@mhodent&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;also, thanks for your comment &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 04:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-top-row/m-p/2349945#M116858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T04:10:34Z</dc:date>
    </item>
  </channel>
</rss>

