Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula based on Drop down value.

ecapox
5 - Atom


I have a spreadsheet that looks like this with 1-12 representing the months of the year:

 

CompanyAccount123456789101112
X10050651 84996886   554
Y200126813254 55611  8745  
Z9002513851 4 3585   400 78568

 

 

When the process is run, a user selects a drop down based on what month they want to run the data for. If the user selects July in the drop down box (display says JULY but value is 7) i want the IF statement to pull the value from the drop down box (7) and use it as the column name [7] and pull that value. Example:

If Account = "100" Then [7] endif

 

The goal is that the drop down selection is used to determine which column is pulled into the formula. I've tried concatenating the field like this ([Month] being the drop down input):

 

IF Account = "100" THEN "[" + [Month] + "]"

 

This just gives me the VALUE [7] instead of pulling the value for that field. I would like it to pull the number 86 which is the value for field [7]

1 REPLY 1
binu_acs
21 - Polaris

@ecapox Looking for something like below

 

 

binuacs_0-1675285361948.png

 

 

Labels
Top Solution Authors