Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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