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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Vishu1
Employee
Employee

Duplicate records in specific format

Hello,

I have below requirement. I am trying to save result from one table to another table.

Source: 

Id,Name,HomePhone,MobilePhone

1,john,111111111,222222222

2,Mike,,444444444

 

Target:

Id,Name,Phone

1,john,111111111

1,john,222222222

2,mike,444444444

 

How can I achieve this in Talend, I am using subscription version of Talend 7.

 

Thanks,

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Use tSplitRow to create a row for each phone number with the same Id.
Then tFilterRow to reject null phone numbers for these new rows.
Got it?

View solution in original post

4 Replies
TRF
Champion II
Champion II

Use tSplitRow to create a row for each phone number with the same Id.
Then tFilterRow to reject null phone numbers for these new rows.
Got it?
Vishu1
Employee
Employee
Author

@TRF Thanks, I will try your solution. 

I tried below way which is giving the expected output, but I think I am using more component and which can be done using fewer. 

 

 


map.PNG
splitrows.PNG
Vishu1
Employee
Employee
Author

@TRF Thanks, tSplitRow worked for me.

TRF
Champion II
Champion II

Great!
You're welcome