Alteryx Designer Desktop Discussions

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

How To Create Dynamic Formula in Formula Tool

lbjohn
7 - Meteor

Hello,

 

Using the attached Excel screenshot. I want Alteryx to dynamically update the operator in the formula tool, depending on the Operator field.

 

Any idea how I can do this?

 

Thanks,

 

John Wong

Formula.png

4 REPLIES 4
DavidP
17 - Castor
17 - Castor

Hi @lbjohn 

 

I would do this with a batch macro as shown below. Basically, you alter the formula in the formula tool using the desired operator. Pay attention tp how the Action tool in the macro is configured and also how the Group by function is used in the workflow that calls the macro.

 

Sample workflow attached.

 

workflow:

DavidP_0-1632951795460.png

Macro:

 

DavidP_1-1632951836688.png

 

Action tool configuration:

DavidP_2-1632952078068.png

 

Using Group by in workflow:

 

DavidP_3-1632952139072.png

 

 

 

 

lbjohn
7 - Meteor

Thanks!  I started with the same approach by using Batch macros.   I missed the step of passing the Operator field to the "Question:  Choose Field: Control Parameter"

apathetichell
18 - Pollux

you can also use dynamic replace for this. dynamic replace really should be called dynamic formula.

lbjohn
7 - Meteor

Can you provide a solution using Dynamic Replace.    The built-in Alteryx Dynamic Replace example is not very useful.

Labels