Dynamic rename
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I want to rename the field names dynamically like below
if filed name contains "Date" , rename it to "Reg Date"
if filed name contains "Employee Name" , rename it to "Employee Name"
if filed name contains "Employee ID" , rename it to "Employee ID"
Original Field Names | Filed Names to be Renamed |
Addl Reg Date | Reg Date |
Addl Employee Name | Employee Name |
Reg Employee ID | Employee ID |
Solved! Go to Solution.
- Labels:
- Developer Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
[A] = Original Field Names
IF CONTAINS([A], “Date”)
THEN “Reg Date”
ELSEIF CONTAINS([A], “Employee Name”)
THEN “Employee Name”
ELSE “Employee ID”
ENDIF
Extend the condition as you see if. The Dynamic Rename tool can be used with the Formula option selected, and the Field Name double clicked.
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @LuckyRaju
Step 1: Input
Step 2:
IF contains([_CurrentField_],"Date")
THEN "Reg Date"
ELSEIF contains([_CurrentField_],"Employee Name")
THEN "Employee Name"
ELSEIF contains([_CurrentField_],"Employee ID")
THEN "Employee ID"
ELSE [_CurrentField_]
ENDIF
Many thanks
Shanker V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, @LuckyRaju
Maybe you can use Dynamic-Rename tool with formula:
Trim(Right([_CurrentField_], Length([_CurrentField_]) - FindString([_CurrentField_], '')))
