Alteryx Designer Desktop Discussions

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

How to make this formula dynamic

wonka1234
10 - Fireball

Hi,

 

I have the formula:

 

Max_DIAMOND_Date:

if [c_Action_Date] <= [File_date_with_days2] then [202210]
elseif [c_Action_Date] <= [File_date_with_days2]
then [202211]
else "" endif

 

The months can shift based on my inpuits to my dataset.

 

wonka1234_0-1674496254667.png

wonka1234_1-1674496278703.png

 

wonka1234_2-1674496298358.png

wonka1234_3-1674496315087.png

 

 

Does any one have any idea on how to make this dyanmic? What is the months were just 202210? what if my columns were 202211 202212? All these are possibilities.

 

 

11 REPLIES 11
wonka1234
10 - Fireball

@RobertOdera 

 

It is after a transformation actually! i did a transpose on 202210 and 202211.

 

N_VALUEc_Action_DateFile_date_with_days202210202211
jon6/27/202211/13/2022 Y
joey6/27/202211/13/2022 Y
kim6/27/202210/13/2022Y 
lou6/27/202211/13/2022 Y
ren6/27/202210/13/2022Y 
bob6/27/202211/13/2022 Y
andrew6/27/202211/13/2022 Y
joe6/27/202210/13/2022Y 
don6/27/202210/13/2022Y 
rudy6/27/202210/13/2022Y 
bobby6/27/202210/13/2022Y 
drew6/27/202210/13/2022Y 
carlos6/27/202210/13/2022Y 
pete6/27/202211/13/2022 Y
jamie6/27/202210/13/2022Y 
justin6/27/202211/13/2022 Y
rich6/27/202211/13/2022 Y
rob6/27/202210/13/2022Y 
trevor6/27/202211/13/2022 Y
adam6/27/202211/13/2022 Y

 

here is the sample dataset before transformations.

Sadly i am worried it wont be dynamic for alteryx server use.

RobertOdera
13 - Pulsar

Hi, @wonka1234 

 

Here you go.

Kindly mark it as an acceptable solution if it works for you.

Cheers!

 

For_wonka1234.PNG

Labels