Alteryx Designer Desktop Discussions

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

How to calculate a field based on multiple criteria

Mershel257
6 - Meteoroid

Hi All,

 

Would really appreciate your help in figuring out how I could best solve this problem.

 

Background story is when we onboard a client, there are multiple stages they go through and each has a target date and a RAG rating. 

Mershel257_1-1606113708099.png

 

 

I'm trying to have Alteryx calculate what stage we're currently working on for each client, and populate the "Current Phase" column with a "Y" based on the below criteria:

  • If all stages for a certain client have a RAG rating of Complete, then put Y in "Current Phase" for the row with the latest date/Live stage (see blue rows)
  • If all stages for a certain client have a RAG rating of Not Started, then put Y in "Current Phase" column for the row with the oldest date/Onboard stage (see yellow rows)
  • If there's a mixture of different RAG ratings for a client, mark the oldest stage with a RAG rating that isn't "Complete" as the current phase (see green rows)

There should be one "Y" in Current Phase column for each client.

 

I'm not sure if formulas is the way to go around this, so would really appreciate any help!!

 

Cheers!

11 REPLIES 11
Mershel257
6 - Meteoroid

Hi @atcodedog05 

 

Working perfectly!! Thank you so much for all your help, really appreciate it 🙂

 

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Mershel257 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Labels