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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

How can I splitt an inputrow into twi outputrows

Hello,

how do I divide a line into several lines?
Example:
InputFile:
name1, email3
name2, email3
name2, email3
OutputFile:
name1,
email1,
name2
email2,
name3,
email3
How can I achieve this?? With a tMap I can change the ordering of the row, but I want to splitt the row into two new rows.
Sorry for my english.
Thank You very much.
Labels (2)
6 Replies
Anonymous
Not applicable

_AnonymousUser
Specialist III
Specialist III
Author

Hello Lie,
thanks for your reply, but is it possible that you can describe your answer a little more detail?
In the tMapView I have on the left Site the rowdescribtion of the inputfile and on the right-Site are two output-Tables.
And what are next? I'm so sorry.
Thank you very much.
Balian
_AnonymousUser
Specialist III
Specialist III
Author

Hello Lie,
the spliting of the row is completed. The result are two files like this:
File1:
name1,
name2
File2:
email1,
email2
But how can i merge both files or is it posssible to merge the rows without creating of two tempfiles?
Sorry for my english. I hope you understand me. 🙂
Best Regards!
Anonymous
Not applicable

Hi
You can use a tUnite component to merge your rows.

Regards,
Lie
alevy
Specialist
Specialist

Rather than sending the two tMap outputs to a file and then tUniting them, you can unite them directly in the tMap: when creating the second output within tMap just select the "Create join table from" option rather than the default "New output" option. There will then be only one flow out of the tMap but it will include the rows from both of the output tables within tMap.
alevy
Specialist
Specialist

There is also from v4.2.0, the tSplitRow component...