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.

Split table into several tables based on condition

cutehappybear
7 - Meteor

Hello, I want to split the following table:

 

TypeData

A

123456
A4535435
A343242
B988798797
B87876
B713123
C23424
C32432

Into the following 3 tables:

A

123456
A4535435
A

343242

 

B988798797
B87876
B713123

 

C23424
C32432

 

However, I could have more than 3 types. I want this to be dynamic/automatized for the number of types that I have.

I want to output to tables "in memory" that I can then use in other tools, and not to files.

How could I do it? Thank you!

 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@cutehappybear 
We can use the filter tool to split the data stream but it will not be dynamic as you said.

Would loev to see if there is apppoach can do it.

 

It can be easy to write file though.

gabrielvilella
14 - Magnetar

I'm assuming that you have a specific rule that you need to apply depending on the type. You need to create all the possible rules, separating the data using filters as @Qiu mentioned. If there is no data for a certain type, nothing will happen. If in the end you combine all them into a single table, you can have all those rules and filters within a macro so your workflow will look cleaner. 

Labels
Top Solution Authors