Start Free Trial

Alteryx Designer Desktop Discussions

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

Identify the complete sentence

Venamma
7 - Meteor

Hi Team,

 

I have a data set which is not in proper format and I have to identify the complete sentence from the given column and populate the same for other options as well so it looks meaningful. 

OptionQ
aQuestion: How concerned are you about 
bQuestion: How concerned are you about your m
cQuestion: How concerned are you about your mental health:
2aQuestion: How do you identify yourself?
2bQuestion: How do you Identify you

 

Expectation:

OptionQ
aQuestion: How concerned are you about your mental health:
bQuestion: How concerned are you about your mental health:
cQuestion: How concerned are you about your mental health:
2aQuestion: How do you identify yourself?
2bQuestion: How do you identify yourself?

 

Can someone please help me with the solution?

 

Regards,

Venamma

4 REPLIES 4
binu_acs
21 - Polaris

@Venamma One way of doing this with the Tile tool, you need to group the records and find which Q-field has the ?

 

binuacs_1-1664867039465.png

 

 

Venamma
7 - Meteor

@binu_acs Thanks for the quick response.

This solution works if the sentence has "?", But I have other entries where question doesn't ends with a "?".
How do we deal with such entries?

Lets say in the input If I remove the ? from  sentences, So I'm looking to identify the longest sentence from all the options for a single question.

 

 

 

binu_acs
21 - Polaris

@Venamma I took the max field and updated the workflow

 

binuacs_0-1664873225343.png

 

OllieClarke
16 - Nebula
16 - Nebula

@Venamma 

Here's another way of getting to the same point which should be a little quicker:

OllieClarke_0-1664876863862.png

I remove all non-numbers from the Option and then use that to group the questions before finding the max like @binu_acs 

OllieClarke_2-1664876962580.png

 

 

Hope that helps,

 

Ollie

 

Labels
Top Solution Authors