My source is XML or TXT (from XML). My fields are trapped in a single field -- I have to separate the wheat from the chaff.
In the example below, the TITLE of an article is trapped in the EVERYTHING FIELD. TITLE always begins with the name of a state.
I want to say if EVERYTHING FIELD starts with a value that appears in STATE then it is TITLE else Null. The hyphen is not a reliable indicator (as it may not be present or may appear in other non-relevant values).
How can I do this?
FILE NUMBER | STATE | EVERYTHING FIELD |
2019-325134 | Missouri | Missouri - Passes Bill to Do Something |
2019-325134 | Missouri | Annex |
2019-134513 | Texas | Item No. |
2019-325134 | Texas | Texas - Increases Taxes |
2019-325134 | Texas | Notice |
2019-124145 | Alaska | Alaska - Requests Federal Funds |
2019-124145 | Alaska | Policy |
Solved! Go to Solution.