Select columns based on a list
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I am trying to figure out how to select columns based on whether they appear in a list (which I have built elsewhere in my macro). This will be dynamic as part of a macro that reads in multiple Excel files and outputs selected columns to a DB table.
Is this possible? Dynamic Select doesn't have multiple inputs so I don't see how I can use that; I can't see the right way to combine my two inputs together to get the output I need.
So I have input tool (Excel source) and input tool (a list of columns) plus some data processing steps, and I need to get to an Output tool to a database where the output is the Excel file but only the columns I need.
Thanks in advance for any assistance.
Solved! Go to Solution.
- Labels:
- Batch Macro
- Dynamic Processing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @datamonkey
Here is what you can do. Taking reference from one of @PhilipMannering solution.
Workflow:
1. Using formula adding a column meta info to the list of columns and setting value as keep.
2. Using dynamic rename and changing the list of columns metainfo to keep in the data.
3. Using dynamic select tool keep only column with metainfo keep.
Hope this helps : )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks @atcodedog05 - I thought I'd be lucky if I got an answer by Monday! That works perfectly 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Happy to help : ) @datamonkey
Cheers and have a nice day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have a Alteryx workflow that is trying to fetch the data from Outlook mail and wanted to insert into some table. But since the column contains more than 255 characters, the problem is quite big. Please help me to get specific data from specific columns from the attached workflow.
I need to extract specific data from the Contents field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Jayan_alteryx Export the workflow with input file and start a new discussion with your question. As the current discussion is already solved, chances are not many look into your question.
