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: 
Anonymous
Not applicable

subfield? what it gives?

subfield(upper(country),'\',3) as u  ?

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Subfield() gives you data before Delimeter

For example

subfield(upper(country),'\',3)

in this case if Country = india\abc\China\xya

then return data before 3 delimeter \ i.e. it returns

China as your output

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

4 Replies
PrashantSangle

Hi,

Subfield() gives you data before Delimeter

For example

subfield(upper(country),'\',3)

in this case if Country = india\abc\China\xya

then return data before 3 delimeter \ i.e. it returns

China as your output

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
ashfaq_haseeb
Champion III
Champion III

Hi it will return third position before \

Provide sample data.

Ex

=subfield(upper('Mohammed\Ashfaq\Ali'),'\',3)

will Return ALI

Regards

ASHFAQ

Anonymous
Not applicable
Author

Hi,

this will return the third string delimited by '\' in your field country in upper case in a new field u.

Best regards

Stefan

senpradip007
Specialist III
Specialist III

If country field containts value like

Input                         Output

AA\BB\CC\DD               CC

AA\BB\CC                    CC

AA\BB\RR\DD\EE         RR

Hope this example will help.