Alteryx Designer Desktop Discussions

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

How to add a query to the Formula tool?

s92ma1988
6 - Meteoroid

The goal is to add a column, which is a result of a select statement, to an existing input data set.

 

For example, how to add column D to below existing columns A,B,C where column D is a result of a select statement that uses column A B C in the where clause?

 

To be specific, now we have column A B C as our input dataset, 

A B C

1 2 3

 

given above, how to add column D = select GBQ_D from a good big query table where, for each row, GBQ_A in that table = A, GBQ_B in that table = B, and GBQ_C in that table = C

 

Let me know if you need further clarification. Thanks so much for your help.

7 REPLIES 7
binuacs
21 - Polaris

@s92ma1988 are you looking something like this?

 

binuacs_0-1641938845577.png

 

s92ma1988
6 - Meteoroid

Thanks, do you have an example that actually runs which demonstrates the correct use of the select statements in the formula tool. Thank you

s92ma1988
6 - Meteoroid

Thanks, do you have an example that actually runs which demonstrates the correct use of the select statements in the formula tool. Thank you

s92ma1988
6 - Meteoroid

@binuacs Thanks, do you have an example that actually runs which demonstrates the correct use of the select statements in the formula tool. Thank you

 

@binuacs

binuacs
21 - Polaris

@s92ma1988 I don't have any example , but a simple SELECT statement can be written like below in the formula tool

 

binuacs_0-1641939488456.png

 

s92ma1988
6 - Meteoroid

@binuacs

Thank you again, but this column added here is the statement itself, what's needed is the select result of that statement run. 

atcodedog05
22 - Nova
22 - Nova

Hi @s92ma1988 

 

The formula tool itself cannot run a query you may want to pass the query into the dynamic input tool and get results.

 

Refer to this video from 8:16 minute https://www.youtube.com/watch?v=ELfKYatOJZM 

 

Hope this helps : )

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels