<?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: Equivalent to SQL Server Lead and Lag in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Equivalent-to-SQL-Server-Lead-and-Lag/m-p/2285845#M59467</link>
    <description>For Lead() function you can use tMemorizeRows. 
&lt;BR /&gt;For lag() I'm afraid this is not possible with standard components. You probably will have to proceed by yourself with something like: 
&lt;BR /&gt;- add a column with row number 
&lt;BR /&gt;- sort the result set with this column in reverse order 
&lt;BR /&gt;- use tMemorizeRows (previous row was next one before to reverse the order). 
&lt;BR /&gt;Could be, for huge result sets...</description>
    <pubDate>Wed, 05 Feb 2020 21:55:03 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2020-02-05T21:55:03Z</dc:date>
    <item>
      <title>Equivalent to SQL Server Lead and Lag</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Equivalent-to-SQL-Server-Lead-and-Lag/m-p/2285844#M59466</link>
      <description>&lt;P&gt;Is there component and or code in Talend I could use that's the equivalent to SQL Server Lead and Lag? In a dataset, with Lead and Lag, one is able to get value(s) from a prior or subsequent row.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Equivalent-to-SQL-Server-Lead-and-Lag/m-p/2285844#M59466</guid>
      <dc:creator>jimbo20814</dc:creator>
      <dc:date>2024-11-16T03:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent to SQL Server Lead and Lag</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Equivalent-to-SQL-Server-Lead-and-Lag/m-p/2285845#M59467</link>
      <description>For Lead() function you can use tMemorizeRows. 
&lt;BR /&gt;For lag() I'm afraid this is not possible with standard components. You probably will have to proceed by yourself with something like: 
&lt;BR /&gt;- add a column with row number 
&lt;BR /&gt;- sort the result set with this column in reverse order 
&lt;BR /&gt;- use tMemorizeRows (previous row was next one before to reverse the order). 
&lt;BR /&gt;Could be, for huge result sets...</description>
      <pubDate>Wed, 05 Feb 2020 21:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Equivalent-to-SQL-Server-Lead-and-Lag/m-p/2285845#M59467</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-05T21:55:03Z</dc:date>
    </item>
  </channel>
</rss>

