Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Survey Data Cleaning

dbhamber
6 - Meteoroid

Hi All,

 

I am new to Alteryx and would appreciate any help.

 

I was hoping would be able to help me or point me in the right direction.

 

I am trying to clean some Survey data in Alteryx, I have tried, cleaning, Formula, Text to Columns even RegEx does not seem to be working for me.

 

I want to remove all of the syntax and just keep the highlighted in the field, some of the fields can be blank and to output into .xlsx

 

The data is from a SAP systems.

I have attached the file with the field, any help or guidance in preparing data from a survey,

 

Thanks

 

Di

 

dbhamber_3-1621590493575.png

 

 

dbhamber_2-1621590481667.jpeg

 

 

 

 

 

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @dbhamber 

 

Here is how you can do it. I am regex tool parse mode

 

Workflow:

atcodedog05_0-1621591464482.png

 

Regex:

<b>(.*)</b>.*<p.*>(.*)</p>

 

I am using the logic that Question is surrounded by <b></b> tag and answer is surrounded by <p></p>

 

Hope this helps 🙂

 

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @dbhamber,

 

I would use two Regex tools to extract the pieces of information:

 

First regex tool allows us to parse out everything between <b> and it's closing tag

 

<b>(.*?)</b>

 

 

The second regex tool parses out the font size value and the following piece of text

 

<p style="font-size: (.*?)">(.*?)</p>

 

 

Jonathan-Sherman_0-1621591728990.png

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

 

dbhamber
6 - Meteoroid

Hi Jonathan,

 

That was great, however my output shows only one column, do I need to make any changes to settings anywhere.

 

I want my output to show 3 columns just like your snapshot.

 

Thanks in advance

 

Di

 

dbhamber_0-1621597008789.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @dbhamber 

 

Sorry for leaving out font size column 😅. I have update my workflow to capture it.

 

<b>(.*)</b>.*<p.*font-size: (.*)">(.*)</p>

 

Workflow:

atcodedog05_0-1621599199026.png

Hope this helps 🙂

dbhamber
6 - Meteoroid

Hi,

 

Thanks a Million, its has worked

 

I have managed to use this and pulled out an excel file.

 

Anyway I can rename the 3 new columns.

 

We have survey results on a regular basis I need to make sure the fields have a meaning.

 

Thanks in advance

 

Di

atcodedog05
22 - Nova
22 - Nova

Hi @dbhamber 

 

If your usecase is solved. You can mark the helpful replies as Accept Solution. 🙂

Labels
Top Solution Authors