Alteryx Designer Desktop Discussions

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

Group by on a column and select records containing particular string

keeprollin
7 - Meteor

Hello community,

 

In the given sample file, the column Master ID may have one or more IDs. I need to group by on each Master ID and select only the IDs which start with XYZ. Could someone please let me know a solution to it? I thought of creating a record ID column and performing a count on it to filter records >1, but it should not be the correct solution.

 

AccountIDMaster ID
4658G002ABG002AB
4735XYZ00005645G002AB
5867G002DFG002DF
2735XYZ00005364G007DF
6970G007DFG007DF
5854G00GBDG00GBD
4678G00YR5G00GBD
9783G01GY6G00GBD
5760G02IPYG00GBD
2354G03U75G00GBD
5375XYZ00001202G00GBD
1243XYZ00001459G00GBD
3749XYZ00005382G00GBD
9880XYZ00004857G00GBD

 

I'm expecting my final output to look something like below:

AccountIDMaster ID
4735XYZ00005645G002AB
5867G002DFG002DF
2735XYZ00005364G007DF
5375XYZ00001202G00GBD
1243XYZ00001459G00GBD
3749XYZ00005382G00GBD
9880XYZ00004857G00GBD
3 REPLIES 3
binuacs
20 - Arcturus

@keeprollin This can be done with the help of the filter tool

 

binuacs_0-1661782832328.png

 

MilindG
12 - Quasar

You can just use the filter tool which contain ('XYZ') please see the attachment

Biswarun
8 - Asteroid

How does your output contain 5867 - G002DF?

 

Otherwise, please consult the attached workflow.

Labels