Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

column selection using data from sql server.

sbatra116
8 - Asteroid

Hello,

Newbie here. 

 

Flow:  I want my column selection based using data from sql server. 

 

I'm passing 3 fields from sql server as column name, those will be fetched from larger spreadsheet.

once i have the columns those need to pass into Macro for further processing.

 

Flow:

 

Speadsheet has say 9 columns

ABCDEFGHI
         

 

sql server pass 3 columns 

A
B
C

 

select A, B and C from spreadsheet.  - complete (used Transpose function)

 

Pass these to Maco which accepts 3 input.  (Issue here)

i have to assign macro inut with column names, but how to handle once my sql server pass other columns like d,e,f insread of a,b,c

 

Question:  how do i dynamically select columns from spreadsheet depending upon values passed from sql server and pass those to marco.

2 REPLIES 2
ddiesel
13 - Pulsar
13 - Pulsar

Hi @sbatra116!

 

One approach would be to utilize the "Only Output Common Subset of Fields" mode in the Union tool. The only tricky part is bringing your column names up to the header row. This can be accomplished with the RecordID, Cross Tab, and Dynamic Rename tools.

Capture.JPG

 

If you need help configuring this into your macro, please upload your workflow or post screen shots so we can advise.

 

Let us know if this works for you!

 

Thanks,
Deb

sbatra116
8 - Asteroid

thank you ddiesel.

works for me

Labels