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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get a word into a text string field

Hello Everybody! Could guide to me in this question please?

The case is:

I have a field with the number and description of the department.
But I require only show the first word of the department without their number.
The issue is when the departmet has 1 word, it solution can't do it, because the delimiter isn't a space or any other.


I tried it with the following function:

MID(Departamento,4,Index(Departamento,' ',2)-4) as TestMidIndex



Also attach an excel and qvd examples.


I will appreciate your support.
Thanks for advance

1 Solution

Accepted Solutions
MarcoWedel

or

Subfield(Departamento,' ',2) as TestMidIndex


?

View solution in original post

4 Replies
MarcoWedel

Subfield(MID(Departamento,5),' ',1) as TestMidIndex


regards


Marco

MarcoWedel

or

Subfield(Departamento,' ',2) as TestMidIndex


?

Not applicable
Author

Dear Marco,

It is fixing good!

Thanks a lot for your quik answear, i appreciate it.

Best Regards!

MarcoWedel

You're welcome

glad it helped

regards

Marco