Alteryx Designer Desktop Discussions

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

Separate Table based on Rows

fikrizahari
8 - Asteroid

Hi,

Greetings !

I would like to separate the table based on row - value position.
I plan to use 'filter' tool, but there no similar value to tag to each Employee.
Plus, the plan is to use Record ID tool, but I don't have any idea.

Initial Data :

Employee No.Employee Name
3751ALAN
70565BLAKE
70568CATHERINE
70581JESSIE
4512THOMAS
Total Employee : 5 
71336HANCHER
71337LEE
71426SYDNEY
71441FRANK
71564LEMAR
71566SARAH
Total Employee : 6 



Desired Output :

Employee No.Employee Name
3751ALAN
70565BLAKE
70568CATHERINE
70581JESSIE
4512THOMAS

 

Employee No.Employee Name
71336HANCHER
71337LEE
71426SYDNEY
71441FRANK
71564LEMAR
71566SARAH



Thank you in advance !

8 REPLIES 8
ShankerV
17 - Castor

Hi @fikrizahari 

 

One way of doing this.

 

ShankerV_0-1681369411621.png

 

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @fikrizahari 

 

Step 1: Input

 

ShankerV_0-1681369510130.png

 

 

Step 2: Record ID tool

 

ShankerV_1-1681369533150.png

 

 

Step 3: Filter tool

ShankerV_2-1681369557036.png

ShankerV_3-1681369566484.png

 

Step 4: Sample tool.

 

ShankerV_4-1681369591695.png

 

ShankerV_5-1681369608583.png

 

ShankerV_6-1681369618062.png

 

Then run the workflow to get the desired output.

 

Many thanks

Shanker V

 

fikrizahari
8 - Asteroid

Hi @ShankerV ,

The number of employees for both sides not fixed to 5 or 6 employees.
It is possible to have more than 30 employees.

That is the reason, why i plan to create Record ID, maybe add some formula to differentiate upper and lower part.
( possibly use the 'Total Employee' as a benchmark )

Thank you in advance !

ShankerV
17 - Castor

Hi @fikrizahari 

 

The modified workflow helps to do the job dynamically.

 

ShankerV_0-1681370280980.png

ShankerV_1-1681370316497.png

 

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @fikrizahari 

 

Step 1: Same input

 

Step 2: 

 

ShankerV_0-1681370386111.png

ShankerV_1-1681370398135.png

 

Step 3: 

 

ShankerV_2-1681370413623.png

ShankerV_3-1681370427623.png

 

IF ISEMPTY([Employee Name])
THEN [Row-1:TEMP]+1
ELSE [Row-1:TEMP]
ENDIF

 

Step 4:

 

ShankerV_4-1681370456663.png

ShankerV_5-1681370463079.png

 

Step 5:

 

ShankerV_6-1681370488931.png

 

ShankerV_7-1681370499481.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @fikrizahari 

 

Small tweak in the last tool to remove the Total as it is not needed in the output as shared in the requirement.

 

ShankerV_0-1681370809539.png

 

ShankerV_1-1681370820957.png

 

Many thanks

Shanker V

binuacs
20 - Arcturus

@fikrizahari another way of writing the tables in to different sheets in the same file

binuacs_0-1681370812786.png

 

fikrizahari
8 - Asteroid

Hi @ShankerV ,

It worked !
and yes, I used 'Filter' tool instead of 'Sample' tool.

Thank you !


Hi @binuacs ,

Great ! It another idea for me to separate the final table.
It worked as well, thank you !

Labels