SOLVED
Transformation All Column with _FF
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
VJ_88
8 - Asteroid
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- We have to make sure if columns ending with _FF has only numeric values
- There are multiple columns hence I am tryin to use MULTI FIELD FORMULA with ENDSWITH(_CURRENTFIELDNAME_,'__FF')
- we want to replace anything other than number with -1
- Example if Column only has numbers keep like that
- if it has text or number with Text or number with special character and text these column values will be replace by -1
- As these might be alphanumeric hence these are V_String datatype
Solved! Go to Solution.
Labels:
- Labels:
- Developer Tools
2 REPLIES 2
binuacs
21 - Polaris
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@VJ_88 One way of doing this with the dynamic select tool
17 - Castor
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @VJ_88, is this what you're after? I've created an identical column next to the _FF version so you can see the before and after in one place, and that it discriminates based on the "_FF" suffix. Also wasn't sure if by numbers you meant strictly positive/negative and integers/floats, so have built something that handles them all:
IF EndsWith([_CurrentFieldName_], '_FF') THEN
IF !REGEX_Match([_CurrentField_], "-?\d+(?:\.?\d+)?") THEN -1
ELSE [_CurrentField_] ENDIF
ELSE [_CurrentField_]
ENDIF
