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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
manpri7078
Creator
Creator

Extracting piece of text from Expression

Hi all users,

I am almost a newbie to Qlikview. I have a very basic question. I have an expression in a text object which results in a text containing some url links. I want to extract that piece of information related to url links so that I can make another text object for that expression.

I need your valuable guidance in this regard.

Regards,

Manish Prasad

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Look at the example

Suppose your text field like www.google.com

when you use you get google

SubField('www.google.com','.',2) = google

View solution in original post

5 Replies
its_anandrjs
Champion III
Champion III

Use subfield function for that like

Eg:-

SubField(Fieldname,';',1)

what is your field

its_anandrjs
Champion III
Champion III

Look at the example

Suppose your text field like www.google.com

when you use you get google

SubField('www.google.com','.',2) = google

manpri7078
Creator
Creator
Author

Dear Anand,

Attached herewith is the sample qvw document. The text object contains some information which also contains the link to external image path. I want to extract just that path from the whole string.

I hope I have more clearly clarified my problem.

Your guidance in this regard will be appreciated.

Regards,

Manish Prasad

its_anandrjs
Champion III
Champion III

You mean to say you want to get image source like

"http://static.ibnlive.in.com/pix/labs/sitepix/04_2014/11-april-rahul_90x6.jpg"

its_anandrjs
Champion III
Champion III

If you have to extract path use below code for description field you can get this.

=SubField(description,'"',2)

or in text box write a code

=SubField(TextBetween(IF(title=GetFieldSelections(title),description),'','>'),'"',2)