In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Insert column with pattern

adarchuk
7 - Meteor

I have a column of data that has a pattern that includes null values.  It needs to be transposed to include the null values.  Essentially, rows 1-4 is a set of data that I need to get into one row.  Rows 5-8 is the next set of data that I need to get transposed into one row.  The pattern continues with each group of 4 rows.  I've included a sample of the 1200 rows of data.

 

 

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @adarchuk you can use a multi-row tool to create the pattern of 1-4. Attached a workflow to showcase this. If you had some logic or pattern within the data you could assign the numbers more dynamically. I have just set a If condition in the Multi-Row tool that will add 1 until 4 and then start at 1 again.

JosephSerpis
17 - Castor
17 - Castor

Hi @adarchuk I gave a crack at building in some logic based on the data to build the pattern using regex.

binu_acs
21 - Polaris

@adarchuk another option using tile tool

binuacs_0-1647031580247.png

 

Labels
Top Solution Authors