Alteryx Designer Desktop Discussions

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

Transform Text file to Excel

tjamal1
8 - Asteroid

Hi 

I have a text file that contains text like this

 

School 1
(Desc)
5 Harwood Avenue, Unit 205, Ajax ON L1S 2C1
905-420-8641

 

School 2
(Desc)
1 Rossland Road West, Suite 203, Ajax ON L1Z 1Z2
647-889-4985/905-686-2224

 

School 3
(Desc)
846 Finley Ave, Unit 846, Ajax, ON L1S 3R8
647-739-1046

 

I want to transform these text based on the following criteria

1. The First line of every block goes to School Column (e.g School 1, School 2)

2. 2nd Line goes to Description Column

3. 3rd line goes to Address Column

4 4th line goes to the contact number Column

 

How can I achieve this in Alteryx Designer?

10 REPLIES 10
Emil_Kos
17 - Castor
17 - Castor

Hi @tjamal1,

 

I have prepared a solution for you:

 

Emil_Kos_0-1623919177238.png

The output:

 

Emil_Kos_1-1623919187371.png

 

 

tjamal1
8 - Asteroid

Thanks @Emil_Kos for the reply and Alteryx file. 

Can you help us reading this Text file for the same purpose? 

 

Emil_Kos
17 - Castor
17 - Castor

Hi @tjamal1,

 

This workflow currently don't work because the description line is missing for the first example:

 

School 1
(Desc)
5 Harwood Avenue, Unit 205, Ajax ON L1S 2C1
905-420-8641

 

This is expected or this is just an issue with the sample file? 

tjamal1
8 - Asteroid

Some Schools don't have a description.

Emil_Kos
17 - Castor
17 - Castor

Hi @tjamal1,


Rest of the lines are always available? 

 

The description always starts with ( and ends with )? 

tjamal1
8 - Asteroid

The rest of the line always available 

 

Desc starts with a small bracket and ends with a small bracket too. 

 

Example

(Digital Curriculum Available)

Emil_Kos
17 - Castor
17 - Castor

Hi @tjamal1,

 

It took me a while:

 

Emil_Kos_0-1623923436168.png

If this was helpful please mark my post as solved as I spend a decent amount of time on it 🙂 

tjamal1
8 - Asteroid

Hi, @Emil_Kos Thank you soo much for the solution.  It did help very much.

 

Is there any way I can change the Number of Tiles dynamically based on the number of records I have. ?

Emil_Kos
17 - Castor
17 - Castor

Hi @tjamal1,


I shouldn't use tile tool in the first place.

 

This will work like a dream! 

 

 

Labels