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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
379SSS
Contributor III
Contributor III

Duplicate records based on filed values

Hi all,

I have a requirement as like

Table1:
load * Inline [
Product_ID,ProductName
1,Mango&Banana&Apple
2,Apple&Banana&Mango
3,Apple&Mango&Banana
4,Banana&Mango&Apple
];

Require output:

Product_ID, ProductName

1,Mango
1,Banana
1,Apple
2,Banana
2,Mango
2,Apple
3,Apple
3,Banana
3,Mango
4,Mango
4,Apple
4,Banana

please let me know if anyone can help here.

Thank you in advance!

 

Labels (3)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try with subfield function like

Table1:
load Product_ID , subfield(ProductName, '&') as ProductName Inline [
Product_ID,ProductName
1,Mango&Banana&Apple
2,Apple&Banana&Mango
3,Apple&Mango&Banana
4,Banana&Mango&Apple
];

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Try with subfield function like

Table1:
load Product_ID , subfield(ProductName, '&') as ProductName Inline [
Product_ID,ProductName
1,Mango&Banana&Apple
2,Apple&Banana&Mango
3,Apple&Mango&Banana
4,Banana&Mango&Apple
];

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
379SSS
Contributor III
Contributor III
Author

Thanks for the reply @MayilVahanan 

Is there any alternate solution for this?