<?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: tMemorizeRow only filling blank data once in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552840#M149692</link>
    <description>&lt;P&gt;Noted. I was already creating vars so I figured might as well keep it consistent&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2026 14:21:27 GMT</pubDate>
    <dc:creator>jeanjpotgieter</dc:creator>
    <dc:date>2026-07-07T14:21:27Z</dc:date>
    <item>
      <title>tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552295#M149669</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a use case where I need to pull a description field down from a previous row if the IDs match:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID | Description|&lt;/P&gt;&lt;P&gt;100|Apple|&lt;BR /&gt;100||&lt;BR /&gt;100||&lt;BR /&gt;100||&lt;BR /&gt;101|Banana&lt;BR /&gt;102||&lt;BR /&gt;103|Kiwi|&lt;/P&gt;&lt;P&gt;should end up like this:&lt;BR /&gt;100|Apple|&lt;BR /&gt;100|Apple|&lt;BR /&gt;100|Apple|&lt;BR /&gt;100|Apple|&lt;BR /&gt;101|Banana&lt;BR /&gt;102||&lt;BR /&gt;103|Kiwi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the tMemorize row component. I have 2 rows memorized and I have the ID and Description checked on the tMemorize_Row component.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In my tMap I have logic that says: Relational.ISNULL(row1.Description) &amp;amp;&amp;amp; row1.ID.equals(ID_rMemorizeRows_1[1]) ? Description.tMemorizeRows_1[1]&lt;BR /&gt;:row1.Description&lt;BR /&gt;&lt;BR /&gt;It works fine for pulling in the first blank, but then pulls in nothing after that, so I'm getting:&lt;BR /&gt;100|Apple|&lt;BR /&gt;100|Apple|&lt;BR /&gt;100||&lt;BR /&gt;100||&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;How do I get it to pull down blank descriptions an unspecified amount of times?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 13:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552295#M149669</guid>
      <dc:creator>jeanjpotgieter</dc:creator>
      <dc:date>2026-06-29T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552305#M149670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are constantly memorizing the incoming rows, then from the 3rd row it will memorize a null description. It keeps memorizing the 2 LAST rows that were moved through main, and doesn't work retroactively, so it correctly remembers the empty description in the previous row once it get to the 3rd row.&lt;/P&gt;&lt;P&gt;To get what you want you would need to store the value you want to remember in a context or use the Var section of the tMap to create a retrospective lookup. tMemorizeRow is not really required here, though you could use it to reference the previous ID instead of using a code check if the ID changed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 15:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552305#M149670</guid>
      <dc:creator>DaniZ</dc:creator>
      <dc:date>2026-06-29T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552807#M149686</link>
      <description>&lt;P&gt;Thanks for the reply but I wasn't able to solve the issue so I must be doing something wrong.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a tFileInputExcel feeding into the tMap. I've created two variables and defined them as:&lt;BR /&gt;&lt;BR /&gt;prevDesc [!Relational.ISNULL(Var.currentDesc) &amp;amp;&amp;amp;&amp;nbsp;Var.currentDesc.length() &amp;gt; 0 ?&amp;nbsp;Var.currentDesc :""]&lt;BR /&gt;currentDesc [row1.Description]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in my output column I have Description defined as:&lt;/P&gt;&lt;P&gt;[Var.currentDesc.length() &amp;gt; 0 ? Var.currentDesc :Var.prevDesc]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expected that the prevDesc would hold the value of Var.currentDesc because it hasn't been set for the current row yet but it's doing the same thing that the tMemorizeRows did, only copying down a blank value once. Am I doing the retrospective lookup incorrectly?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 06:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552807#M149686</guid>
      <dc:creator>jeanjpotgieter</dc:creator>
      <dc:date>2026-07-07T06:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552811#M149687</link>
      <description>&lt;P&gt;You need something like this in the tMap var section:&lt;/P&gt;&lt;P&gt;PrevDesc --&amp;gt; row9.Description == null ? Var.prevdesc : row9.Description&lt;/P&gt;&lt;P&gt;PrevID --&amp;gt; Var.prevID == null ? row9.ID : Var.prevID&lt;/P&gt;&lt;P&gt;CurrentDesc --&amp;gt;&amp;nbsp;row9.Description == null &amp;amp;&amp;amp; row9.ID.equals(Var.prevID) ? Var.prevdesc : row9.Description &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 08:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552811#M149687</guid>
      <dc:creator>DaniZ</dc:creator>
      <dc:date>2026-07-07T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552831#M149689</link>
      <description>&lt;P&gt;Thanks, I got it working but the logic for setting the previous ID is wrong, it's always grabbing that first ID and never updating it. I solved it by creating two variables called prevID and newID that says&lt;BR /&gt;&lt;BR /&gt;prevID: [Var.newID = null ? "" :Var.newID]&lt;BR /&gt;newID: [row1.ID]&lt;BR /&gt;&lt;BR /&gt;Then I updated the prevDesc variable to say [(row1.Description == null || row1.Description.length() &amp;lt; 1) &amp;amp;&amp;amp; Var.oldID.equals(Var.newID) ? Var.prevDesc &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;:row1.Description]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 14:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552831#M149689</guid>
      <dc:creator>jeanjpotgieter</dc:creator>
      <dc:date>2026-07-07T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552839#M149691</link>
      <description>&lt;P&gt;Happy it worked out.&lt;/P&gt;&lt;P&gt;BTW - You COULD have used tMemorizeRow before the tMap just to get the current and previous IDs without having to use the extra Var to determine prevID...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 14:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552839#M149691</guid>
      <dc:creator>DaniZ</dc:creator>
      <dc:date>2026-07-07T14:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMemorizeRow only filling blank data once</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552840#M149692</link>
      <description>&lt;P&gt;Noted. I was already creating vars so I figured might as well keep it consistent&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 14:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMemorizeRow-only-filling-blank-data-once/m-p/2552840#M149692</guid>
      <dc:creator>jeanjpotgieter</dc:creator>
      <dc:date>2026-07-07T14:21:27Z</dc:date>
    </item>
  </channel>
</rss>

