Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula Logic

jenneckelm
5 - Atom

Trying to get a formula written that changes the account code in column L to a specific code based on System Account Column AG, and Line Date Column AC. 

 

If the Journal date (column J) is > than Line Date (column AC) , and System Account (column AG) = FMLI_CO_ER then account should update to 111954. 

 

Thanks in advance for the help! 

 

 

jenneckelm_0-1686235932758.png

 

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

IF [Journal Date]>[Line Date] AND [System Account] = "FMLI_CO_ER" THEN 111954 ELSE [Account] ENDIF

alexnajm
18 - Pollux
18 - Pollux

The above assumes the Journal Date and Line Date are stored as Dates, and you want the Account to be numeric - if the account should be a string, you would do: IF [Journal Date]>[Line Date] AND [System Account] = "FMLI_CO_ER" THEN "111954" ELSE [Account] ENDIF

nagakavyasri
12 - Quasar

Screenshot 2023-06-08 134234.png

Labels
Top Solution Authors