Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Extract some words from a data set.

Ar13f
10 - Fireball

Dear All,

 

I hope all communities are in good health ...

 

Kindly need your help from you guys.

I have a role data like below and I want to only want to take some roles as written in the "Result" column.

 

Current Role DescriptionThe Result
Proprietors,Beneficial Owners,Authorised Signatories,Approving SignatoriesBeneficial Owners,Authorised Signatories,
Authorised Signatories 
Directors,Shareholders,Authorised Signatories,Approving SignatoriesDirectors,Authorised Signatories
Directors,Beneficial Owners,Shareholders,Authorised Signatories,Approving SignatoriesDirectors,Beneficial Owners,Authorised Signatories,
Directors,Authorised Signatories,Approving SignatoriesDirectors,Authorised Signatories
Directors 
Shareholders 
Approving Signatories,Authorised Signatories,Directors,ShareholdersAuthorised Signatories,Directors,
Approving Signatories,Authorised Signatories,Beneficial Owners,Director,ShareholderAuthorised Signatories,Beneficial Owners,Director,
  

 

Thanks a lot for the help.

 

Regards,

5 REPLIES 5
Qiu
21 - Polaris
21 - Polaris

@Ar13f 
Can you introduce your logic here?
I dont see a pattern...

Ar13f
10 - Fireball

Hi Qui,

 

thank for your response and question ...

 

the logic is :

From the "Current Role Desc" column data actually I only need "Authorised Signatories" but apart from that it has to be seen if this person has any other role.

for example :

This person have role are Proprietors,Beneficial Owners,Authorised Signatories,Approving Signatories so I take Beneficial Owners,Authorised Signatories

and  Directors,Beneficial Owners,Shareholders,Authorised Signatories,Approving Signatories, I take Directors,Beneficial Owners,Authorised Signatories

 

I hope you can understand what I want.

 

regards,

 

Ar13f
10 - Fireball

sorry there is 1 more additional logic

 

while for people who have 1 role even though he is "Authorised Signatories" is ignored.

CarliE
Alteryx Alumni (Retired)

@Ar13f 

 

Attached is a workflow

 

CarliE_0-1654826143702.png

 

What I did was counted how many commas there was, if there were none, i left the field alone. If there were more than 0 I looked up if any of the roles that are bolded above are in the record. After that, I consolidated.

 

Please mark as a solution if this solved your problem :)

 

Thanks!

Carli
Ar13f
10 - Fireball

Dear @CarliE 

 

sorry for late respon ....

 

Thank you so much for your help and advice ...

 

Thank you for all members ...

 

regards,

Labels
Top Solution Authors