Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Parsing file using unknown number of lines for each record

Saraabdi955
8 - Asteroid

Hi everyone,

I have some files attached.

And I don't know how many IP does each domain have.


Could you help me, please?

3 REPLIES 3
DenisZ
11 - Bolide

Please see attached workflow

 

DenisZ_0-1669103008470.png

 

 

 

Saraabdi955
8 - Asteroid

Thanks @DenisZ 

It's exactly what I wanted to do!
Could you explain a bit about the process?

DenisZ
11 - Bolide

Sure, 

 

1: Text to Columns (rows): This is used to get all the lines on a separate row which would be easier for data processing 

2: Filter: we are not interested in empty rows

3: Searching for all lines that end with ".com". If you look through the data you are able to see that each website has its own line with IP adressess folloing after. So if the row is a website, I just put it out on a separate column 

4: Multi Row Formula Tool: Since I see that the IP adresses follow right after the website and then a new website comes, then I know that I can just fill in the empty rows with the website that belongs to the IP. This is because I already know that I want to use the summarize tool afterwards. 

5: Filter: Do not want any empty rows

6: Summarize to count number of occurrences.

 

Hope it helps!

Labels