Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Save the Date: QlikWorld Online, June 24-25, 2020. Free global virtual event for data integration and data analytic gurus. Register Today
New Contributor II

Problem removing characters from a string

Hi, 

New to qlikview, i have a list box that has county name like:

ABCD - countyname

I wanted to remove the 'ABCD -' from the displayed text.

I tried:

mid(countyname,8) 

This seemed to keep they original text and append the county name text i want to the end.

what am i missing?

 

Thanks

Tags (2)
8 Replies
Highlighted
Partner
Partner

Re: Problem removing characters from a string

Hi,

try with subfield(countyname,'-',2)

Highlighted
New Contributor II

Re: Problem removing characters from a string

i just tried and it appears to be the same issue. 

Seems as though the original text is locked and can't be deleted for some reason

Highlighted

Re: Problem removing characters from a string

Would you be able to share a sample to show the issue?

Highlighted
New Contributor II

Re: Problem removing characters from a string

clipboard_image_0.png 

this is before adding the mid(countyname,8)

after 

clipboard_image_1.png

Highlighted

Re: Problem removing characters from a string

I see the problem, but where exactly are you using the code? In the script? Can you share the script that you have used?

Highlighted
New Contributor II

Re: Problem removing characters from a string

No, i was adding to the list box under properties/expressions

Highlighted

Re: Problem removing characters from a string

List box expression is not the right place to use this... either do the transformation in the script or do it on the general tab

Highlighted
Digital Support
Digital Support

Re: Problem removing characters from a string

Brent, did Sunny's last post get you where you needed to be?  If so, do not forget to come back and use the Accept as Solution button to mark his post as having worked and to give him credit for the help.  If you have further questions, update the thread.  If you did something else, consider posting that and then use the button to mark it after you post it.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.