Start Free Trial

Alteryx Designer Desktop Discussions

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

Txt File Cleanup Question

canddig
6 - Meteoroid

Hello Community, 

 

I have a question for you and I am not even sure it is possible to achieve. I have a txt file that is used to map accounts but the accounts are in a hierarchy based on how many times the name is tabbed in. So some of the columns can have one tab and some can have 5+ that would relate or roll up into the field above it. Here is an example: 

canddig_0-1652406201150.png

 

But I need it to be in this format so I can use it for my mapping 

canddig_1-1652406236898.png

 

Let me know if you have any thoughts or ideas. I have attached the sample txt file. 

Thanks in advance for thinking through this with me. 

 

 

 

 

7 REPLIES 7
DataNath
17 - Castor
17 - Castor

About to hop off my laptop but I started having a stab at this. Looks like the raw text has an additional layer of being 'tabbed' which pushes it a column further than you'd like, as I was thinking I could just fill down the values with multi-row formula tools if the current row was null. Have left my workflow in case it comes in handy and helps towards a solution!

 

DataNath_0-1652408273992.png

 

gabrielvilella
14 - Magnetar

You can have something like this. This is going to depend on how many layers you have. If you really want to make this dynamic, you can build a macro rather than copying and pasting the multi-row multiple times. 

gabrielvilella_0-1652410319710.png

 

Ben_H
11 - Bolide

Hi @canddig,

 

Here's my take on it.

 

This method should work for any number of levels.

 

Ben_H_0-1652439835283.png

Ben_H_1-1652439864218.png

 

Regards,

 

Ben

canddig
6 - Meteoroid

This is a great start. It is splitting the values sometimes into separate columns but its a great base for me to work off of. Thank you! 

canddig
6 - Meteoroid

Thank you! When I try this one it is pushing everything into the first column which I am losing my hierarchy then. 

Ben_H
11 - Bolide

Hi @canddig,

 

It might not be obvious from what I uploaded but the input tool is configured like this -

Ben_H_0-1652443532783.png

 

 

Note that the Delimiters are set to \0

 

That's the most obvious issue I could see.

 

Regards,

 

Ben

 

 

canddig
6 - Meteoroid

This is perfect! Thank you Ben! 

Labels
Top Solution Authors