Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ldao1595437021
Contributor
Contributor

Update previous rows in tMap or tJava

Hi All,

I need one help to build below logic, we can use tMap or tJava.

My input and output is text file.

I want to populate Missing data using same value as first available value as per below screenshot.

0693p000008viYUAAY.jpg

Thanks,

LucDK

Labels (2)
3 Replies
Ravi_Rajagopal
Contributor III
Contributor III

tMap should be able to help you out with the same. You can add variables to do a translation as in if the source is null as is the case indicated with red fields, you can populate the same with default values and the component will take care of the same. There are YouTube videos available which will walk through exactly how to do this.

ldao1595437021
Contributor
Contributor
Author

Could you give me detailed instructions

David_Beaty
Specialist
Specialist

Hi,

 

Theres a component in Talend for doing just this, called tMemorizeRows, or you can do it in a tJavaRow, but putting the current row value for a given column into a globalMap variable if present, or getting the value from the globalMap if the value is missing.

 

Thanks

 

David