Creating a new colum by refering to other columns.
- 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
Hello,
I am facing an issue with creating a workflow - I need to refer to the columns 'ID' and 'Phone' and make a new column 'Usage' as shown in the attachment. I tried using the joins but couldn't able to achieve it.
Thank's in advance.
Solved! Go to Solution.
- Labels:
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Step 1: Use the summarize tool to take the count
Step 2: Use the Join
Step 3: Use formula tool.
Input the data
IF [Usage]="2"
Then "Both"
ELSE [Phone]+" only"
ENDIF
Many thanks
Shanker V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Arvnd-Alteryx ,
Here is one way of doing this.
If you want to keep the order, you may join the output back to the original table.
Workflow
Summary Tool configuration
Formula tool configuration
Usage = IF [Concat_Phone] = "Apple" THEN "Apple only"
ELSEIF [Concat_Phone] = "Android" THEN "Android only"
ELSEIF [Concat_Phone] = "Android,Apple" THEN "Both"
ELSE Null()
ENDIF
Output
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for the quick reply.
Really appreciate your help @Yoshiro_Fujimori
ShankerV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, @Arvnd-Alteryx
I assume that your phone includes duplicates, so I think the following process is more rigorous:
Input | Output | ||||
ID | Phone | ID | Phone | Usage | |
111 | Android | 111 | Android | Both | |
222 | Apple | 222 | Apple | Apple only | |
333 | Apple | 333 | Apple | Both | |
111 | Apple | 111 | Apple | Both | |
444 | Android | 444 | Android | Android only | |
555 | Android | 555 | Android | Android only | |
666 | Android | 666 | Android | Android only | |
333 | Android | 333 | Android | Both | |
777 | Apple | 777 | Apple | Apple only | |
888 | Apple | 888 | Apple | Apple only |
