SOLVED
Search and Extract string into column
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
qlikvw2019
7 - Meteor
‎04-25-2020
08:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have a column name "log" , it will have lots of details, i want to extract below
....penalty: Low .....
OR
...penalty: Medium.....
I want to extract put the Low or medium in a separate column. Low/Medium will always be mentioned in the same format, right after
penalty:
Solved! Go to Solution.
2 REPLIES 2
ponraj
13 - Pulsar
‎04-25-2020
08:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It would be great if you could share sample data
15 - Aurora
‎04-25-2020
09:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @qlikvw2019, you could create a formula field with a logic that would look something like the below. It assumes column log will have penalty: Low of penalty: Medium as a string in it.
IF Contains([log],'penalty: Low')
THEN 'Low'
ELSEIF Contains([log],'penalty: Medium')
THEN 'Medium'
ELSE NULL()
ENDIF
If this doesn't work, please provide us a sample dataset for us to look at.
