Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

split into rows

BOBBY321
5 - Atom

Hi everyone,

 

I came across following problem,:

The source excel data is like :

dataorgcompanypersonalusageinfo
2018-03-15
2018-03-15
398783614
398783614
31050161393600002149
31050161393600002149
6236684220008412455
6217000130041118372
salary
salary
2331.78 SH31000009193009701
2215.95 SH31000009193009701
2018-05-15
2018-05-15
398783614
398783614
31050161393600002149
31050161393600002149
0000100532908
6217003860022562324
salary
salary
519.0091930
3591.18 SH31000009193009701
2018-03-23
2018-03-23
398783614
398783614
31050161393600002149
31050161393600002149
6217001820025722459
6236680130004083750

salary

salary

1401.65 SH31000009193009701
1503.5 SH3100009193009701

every cell contains two rows of data and however combined as one with a line break  '\n'

And i would like to split the data like this :

dataorgcompanypersonalusageinfo
2018-03-15398783614310501613936000021496236684220008412455salary2331.78 SH31000009193009701
2018-03-15398783614310501613936000021496217000130041118372salary2215.95 SH31000009193009701
2018-05-15398783614310501613936000021490000100532908salary519.009193
2018-05-15398783614310501613936000021496217003860022562324salary3591.18 SH31000009193009701
2018-03-23398783614310501613936000021496217001820025722459salary1401.65 SH31000009193009701

2018-03-23
398783614310501613936000021496236680130004083750salary1503.5 SH3100009193009701

 

it seems the text-to-column does not help.

 

How  Alteryx achieve this? Need help.

 

Thanks

9 REPLIES 9
messi007
15 - Aurora
15 - Aurora

@BOBBY321,

 

Could you share the source file (Excel or CSV) it will help us to give you the solution.

 

Regards,

Luke_C
17 - Castor

Hi @BOBBY321 

 

The text to columns is the right tool, but since it only does one field I'd suggest transposing your data to do it in one shot then crosstabbing back:

 

Luke_C_0-1658159635156.png

 

 

BOBBY321
5 - Atom

I have upload a sample. It is from an OCR result, so have much to do with the data cleaning 

binuacs
20 - Arcturus

@BOBBY321 one way of doing this

 

binuacs_0-1658160081771.png

 

BOBBY321
5 - Atom

That helps. Thank you Luke

IraWatt
17 - Castor
17 - Castor

Hey @BOBBY321,

Here is another way of doing this:

IraWatt_0-1658160057775.png

This solution uses the transpose and cross tab tools which can be hard to understand to new users. I would recommend checking out the community Getting-Started-Learning-Path for some context on how they work: https://community.alteryx.com/t5/Learning-Paths/Getting-Started-Learning-Path/ta-p/475117

 

Any questions or issues please ask :)
HTH!
Ira

 

Emmanuel_G
13 - Pulsar

Hi @BOBBY321,

 

Find a solutio attached !

Emmanuel_G_0-1658160583959.png

 

BOBBY321
5 - Atom

Another question :

Does anyone know the way to filter all rows in one column which contains a  line break  '\n'  

Luke_C
17 - Castor

Hi @BOBBY321 

 

Something like this should work:

 

Contains([data],"
")

 

Luke_C_0-1658234857087.png

 

 

Labels