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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

How to extract columns that contain a prefix e.g. 'Test-'

ed_b
7 - Meteor

Hi,

 

I am new to Alteryx. As indicated in a previous post, unless I am mistaken, it appears to lack some basic functionality. How does one extract columns containing a particular string? I wish to extract only these and sum along the columns axis in order to set as a new field.

 

Ed

2 REPLIES 2
danrh
13 - Pulsar

You should be able to do this using the Dynamic Select tool.  Something more or less like this:

 

image.png

 

 

Replace 'Test-' in the Expression with whatever string you're looking for.  In this instance, any field with the term 'Test-' in the field name will be extracted.  To sum up the columns after this, add a Summarize tool and choose sum as your method of aggregation.

ed_b
7 - Meteor

Very kind danrh, this looks like what I was looking for!

Labels
Top Solution Authors