Alteryx designer Discussions

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

Text To Column / Multi-Row Formula

Highlighted
Meteor

Hi all,

 

I'm looking for an easy way to link the below title and artist with each other. I tried text to column but the problem is that I'm getting duplicate rows (second table below)... is there another multi-row solution for this?

 

Title and artist linked through color:

yearcategoryTitleArtist
1978Nederlandse zangMoet niet zeuren,Het beste is mij niet goed genoeg voor jouTol Hansse,Peter Koelewijn
1978Pop InternationaalCity to city,My aim is trueGerry Rafferty,Elvis Costello

 

 

When doing text to column, split to rows:

Field1Field2Field3Field4
1978Nederlandse zangMoet niet zeurenTol Hansse
1978Nederlandse zangHet beste is mij niet goed genoeg voor jouTol Hansse
1978Nederlandse zangMoet niet zeurenPeter Koelewijn
1978Nederlandse zangHet beste is mij niet goed genoeg voor jouPeter Koelewijn
Highlighted
Alteryx
Alteryx

Text to columns! See attached for example.

 

echuong1_0-1579302598385.png

Pulsar

How about something like this:

 

join artist and song.png

Highlighted
ACE Emeritus
ACE Emeritus

Start with @echuong1 solution.

 

In the first text to columns tool, split the Title. You will then have Title 1 and Title 2.

SS1.png

 

In the second Text to Columns tool, do the same for the Artist column, resulting in Artist 1 and Artist 2.

SS2.png

 

Using 2 select tools, first select year, category, Title1 and Artist1. Rename the last columns as Title and Artist.

SS3.png

 

Then in the other select tool, pick year, category, Title2 and Artist2. Rename those as well to Title and Artist.

 

Union the two streams together and you should have the desired results.

SS4.png

 

@thizviz aka cbridges, Bolide
http://community.alteryx.com/t5/user/viewprofilepage/user-id/2328
Highlighted
Meteor

Great, thank you!!

Labels