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: 
khaycock
Creator
Creator

Subfield numerous spaces

Is it possible in QlikView to use Subfield to separate data after a second delimiter? I want to separate out each line where there the word Missing starts? So where it says Missing CYBERARK Missing SCCM, I want them split up to two lines of data.

 subfield.PNG

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

You could try the following:

load *, 'Missing ' & subfield(replace(ControlStatus, 'Missing ', ''), ' ') as ControlStatus from Source;

- Marcus

View solution in original post

4 Replies
marcus_sommer

You could try the following:

load *, 'Missing ' & subfield(replace(ControlStatus, 'Missing ', ''), ' ') as ControlStatus from Source;

- Marcus

khaycock
Creator
Creator
Author

Yes this worked thank you!! How can I remove lines that have no data in ControlStatus? As now these just have the word Missing in them

marcus_sommer

Maybe with:

load *, 'Missing ' & subfield(replace(ControlStatus, 'Missing ', ''), ' ') as ControlStatus
from Source where len(trim(ControlStatus));

- Marcus

khaycock
Creator
Creator
Author

You have made my day! Thanks so much 🙂