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: 
shatings
Contributor II
Contributor II

Expressions for New Line

I'm completely new to QLIK. I have a field with multiple items separated by a semicolon. Ex. dog; cat; fish;etc (sometimes up to 50 items per row of data). How can I add an expression in QlikView to change each semicolon into a new line? I want it to look like this in my final excel formatted report from Nprinting:

dog

cat

fish

Can you please also explain really quickly on which sheet object would be best and where to insert the expression? Thank you!

Labels (1)
1 Solution

Accepted Solutions
QFabian
MVP
MVP

Hi @shatings , you can use SUBFIELD Qlik function.

It is always recommended to do this kind of transformation in script, not in charts.

Here an example :

QFabian_0-1618876172424.png

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

3 Replies
QFabian
MVP
MVP

Hi @shatings , you can use SUBFIELD Qlik function.

It is always recommended to do this kind of transformation in script, not in charts.

Here an example :

QFabian_0-1618876172424.png

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
shatings
Contributor II
Contributor II
Author

Thank you so much. So when I enter the command into the script, should I expect that second box you have to pop up with each animal on a new line? Or would I have to load that in to Nprinting?

MayilVahanan
MVP
MVP

Hi @shatings 

You need to do in scripting part of your nprinting connection file.

And use the new field in Nprinting excel format file to generate the report.

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