Alteryx Designer Desktop Discussions

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

Use an variable in the formula

Paddi
8 - Asteroid

Hi all,

 

I'm currently facing with an issue while using the formula function. To make it easier to understand, I will show you an example.

 

The problem is I need to dynamic input the fx rate in the formula rather than write it in the formula function.

 

The original input would be like sheet one, and the fx rate would change every time I run the excel workflow, but I am not allowed to change the formula button once the workflow is uploaded to the gallery.

Paddi_0-1670226314226.png

 

The output should be like this: 

 

if [CURRENCY]='USD' then [REAL AMOUNT]*7.13 else [AMOUNT] endif

 

Paddi_1-1670226498766.png

 

The ideal input and output sheets have been attached.

 

Appreciate it very much if you can tell me how to do with this, thank you.

 

 

7 REPLIES 7
ShankerV
17 - Castor

Hi @Paddi 

 

I will suggest to copy the Fx rate in all the below cells and make the formula tool to work as

 

[REAL AMOUNT]*[Fx Rate]

 

Many thanks

Shanker V

 

 

ShankerV
17 - Castor

@Paddi 

 

Please find the input:

ShankerV_0-1670228398706.png

 

Workflow:

ShankerV_1-1670228423481.png

 

Output:

ShankerV_2-1670228454295.png

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

@Paddi 

 

Step 1: Input

Step 2: Multi-Row formula

 

ShankerV_0-1670229848439.png

 

Step 3: 

ShankerV_1-1670229871081.png

 

Output: 

ShankerV_2-1670229926384.png

 

Hope your issue is resolved. Feel free to mark helpful answers as a solution, so that future users with the same issue can find them easier!!!!

 

Many thanks

Shanker V

 

 

 

 

KrishnaChithrathil
11 - Bolide

@Paddi 

KrishnaChithrathil_0-1670230101515.png

KrishnaChithrathil_1-1670230144528.png

 

Paddi
8 - Asteroid

hihi @KrishnaChithrathil  It works, thank you!

Paddi
8 - Asteroid

hihi @ShankerV  Well solved, thank you.

KrishnaChithrathil
11 - Bolide

@Paddi 

Please mark all the posts which helped you as a solution. 🙂

Labels