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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
abeyphilip
Creator II
Creator II

Seperating list values from a string

Hi,

I have column in an excel, with values like

list value5

list value1, list value2, list value3

Is there any way using list box expression, the second line item above can be shown as sepererate list values in a list box?

as:

List

list value5

list value1

list value2

list value3

Thanks,

Abey

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use the subfield function

load *, subfield(list,',') as listitem from ...etc

You may want to use trim too to get rid of extra spaces: trim(subfield(list,','))


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use the subfield function

load *, subfield(list,',') as listitem from ...etc

You may want to use trim too to get rid of extra spaces: trim(subfield(list,','))


talk is cheap, supply exceeds demand
abeyphilip
Creator II
Creator II
Author

Hi Gysbert,

Perfect. Thanks a lot!!!