I have an attribute [complete] withe the value 1-A.
I would like to split that value to attribute split1] with the value 1
and attribute esplit2] with the value A
I've tried AttributeSplitter;AttributeTrimmer;AttributeCreator
I have an attribute [complete] withe the value 1-A.
I would like to split that value to attribute split1] with the value 1
and attribute esplit2] with the value A
I've tried AttributeSplitter;AttributeTrimmer;AttributeCreator
Use an AttributeSplitter with "Attribute to Split" set to complete, and Delimeter set to a dash (-). Then use a ListExploder to on the list attribute created by the splitter. You can then use a FeatureMerger to merge the records back together.
Use an AttributeSplitter with "Attribute to Split" set to complete, and Delimeter set to a dash (-). Then use a ListExploder to on the list attribute created by the splitter. You can then use a FeatureMerger to merge the records back together.
Hi @kees_v, you can accomplish this using the AttributeManager as well. If you're splitting by only one character on each side of the -, you can set the transformer parameters as they are below:
Use an AttributeSplitter with "Attribute to Split" set to complete, and Delimeter set to a dash (-). Then use a ListExploder to on the list attribute created by the splitter. You can then use a FeatureMerger to merge the records back together.
Use an AttributeSplitter with "Attribute to Split" set to complete, and Delimeter set to a dash (-). Then use a ListExploder to on the list attribute created by the splitter. You can then use a FeatureMerger to merge the records back together.
Anyway, I think the AttributeSplitter would be a general way to split a string by a specific separator character or string.
Hi @kees_v, you can accomplish this using the AttributeManager as well. If you're splitting by only one character on each side of the -, you can set the transformer parameters as they are below:
e.g.