Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Text To Column / Multi-Row Formula

jesuisbo
8 - Asteroid

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
4 REPLIES 4
echuong1
Alteryx Alumni (Retired)

Text to columns! See attached for example.

 

echuong1_0-1579302598385.png

DavidP
17 - Castor
17 - Castor

How about something like this:

 

join artist and song.png

ThizViz
11 - Bolide

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
jesuisbo
8 - Asteroid

Great, thank you!!

Labels