Free Trial

Alteryx Designer Desktop Discussions

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

Fill empty cells with the value from the left-most cell until it reaches a non-empty cell

D_Y
8 - Asteroid

Hello

 

I have a data set that looks like this:

 Townhomes  Condos 
 City 1City 2 City 1City 2
202010%2% 8%1%
20215%5% 29%8%

 

I'm trying to get the data into this format (only did the first two rows as example):

YearHousing TypeCityValue
2020TownhomesCity 110%
2020TownhomesCity 22%

 

In terms of solution, as a first step I was thinking of copying and pasting the values "Townhomes" to the right until it reaches the next non-empty cell, in this case "Condos". Then do the same thing with "Condos". 

 TownhomesTownhomesTownhomesCondosCondos
 City 1City 2 City 1City 2
202010%2% 8%1%
20215%5% 29%8%

 

Not sure how to actually do this without losing the actual data by using the Transpose tool. 

 

Thanks!

4 REPLIES 4
AngelosPachis
16 - Nebula

Hi @D_Y ,

 

Is your input an Excel file? If yes, checking option no.6 of the configuration pane 

AngelosPachis_0-1646345566650.png

should change your data structure as that shown below, with Records 1 and 2 containing your headers

AngelosPachis_1-1646345609592.png

You can then adopt a logic similar to that displayed below to get to your desired output

AngelosPachis_2-1646345654535.png

Hope that helps,

Angelos

ArtApa
Alteryx
Alteryx

Hi @D_Y - Here is a possible solution:

ArtApa_0-1646346963830.png

 

D_Y
8 - Asteroid

 Thanks @AngelosPachis !

D_Y
8 - Asteroid

Thanks so much @ArtApa !

Labels
Top Solution Authors