Forum Discussion
new column based on specific text within a column
- 5 years ago
Ah, of course. I did not realize at first sight. What you are doing is looking for the position of the first R or first F. And that can be before the position 14 (even if there's an "R" at position 14) What you actually need is to extract the character in position 14 and then check if it is an R or an F:
cRCtest V2 = SWITCH ( RIGHT ( LEFT ( dbMfgUnits[fpartno], 14 ), 1 ), "R", "RC_FP", "F", "RC_RP" )Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Ah, of course. I did not realize at first sight. What you are doing is looking for the position of the first R or first F. And that can be before the position 14 (even if there's an "R" at position 14) What you actually need is to extract the character in position 14 and then check if it is an R or an F:
cRCtest V2 =
SWITCH (
RIGHT ( LEFT ( dbMfgUnits[fpartno], 14 ), 1 ),
"R", "RC_FP",
"F", "RC_RP"
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
- alittle15 years agoFrequent Visitor
Thank you! That worked!