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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
BTIZAG_OA
Creator II
Creator II

Subfield N times

Hello there, 

i have a data like this seperated with '|'

col1,col2

val1,random1|random2|random3....

val2, .....

how can i change this to 

col1,col2

val1,random1

val1,random2

val1,random3

val2, .....

 

i tried something with subfield but i have something like this

col1,col2,subfield1,subfield2,subfield3,...

val1,random1,null,null,...

val1,null,random2,null,...

val1,null,null,random3,...

val2, .....

1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

You must do like

SubField(col2, '|') as col2

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni
MVP
MVP

You must do like

SubField(col2, '|') as col2

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
BTIZAG_OA
Creator II
Creator II
Author

Hello Anil_babu_samineni

 

Thanks a lot, i double check the syntax of subfield func. i didnt noticed this

"If you use the Subfield() function in a LOAD statement with the optional field_no parameter left out, one full record will be generated for each substring"

 

have a nice day 🙂