Alteryx Designer Desktop Discussions

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

Formula question involving if-contains-then I'm struggling with

adriennelenker
7 - Meteor

Hi all,

 

This is an issue I'm struggling with. I I have the table below with the following conditions needed. If a condition is true, create a new column that's filled in for all of the User ID rows.

A - If a User ID contains any month before 2021, populate ResultA for all User ID rows.

B - If a User ID contains "deactivated", populate ResultB for all User ID rows

C - Populate ResultC with the person's name of the latest month, the same name for all ResultC rows for a single UserID 

D - For a User ID, for Condition D, if the row of the latest month is null, populate ResultD for all User ID rows.

 

The desired result is below.

Condition AUser IDCondition BCondition CCondition DResultAResultBResultCResultD

Dec 2020

A

Active

James1xxMattx
Jan 2021AActivePaul2xxMattx
Feb 2021ADeactivatedMatt xxMattx
Jan 2021BActiveAnkur1  Sanjayx
Feb 2021BActiveSanjay   Sanjayx
Jan 2021CActiveJessica1 xBrooke 
Jun 2021CDeactivatedBrooke2 xBrooke 

 

I am trying to use formulas with if-contains and end up with the following:

 

Condition AUser IDCondition BCondition CCondition DResultAResultBResultCResultD

Dec 2020

A

Active

James1x   
Jan 2021AActivePaul2    
Feb 2021ADeactivatedMatt  xMattx
Jan 2021BActiveAnkur1    
Feb 2021BActiveSanjay   Sanjayx
Jan 2021CActiveJessica1    
Jun 2021CDeactivatedBrooke2 xBrooke 

 

Is there a way to write the formulas to obtain my desired result? I appreciate all help. Thank you.

10 REPLIES 10
ShankerV
17 - Castor

Hi @adriennelenker 

 

Yes, missed the ResultC

Check the latest one below.

 

ShankerV_0-1676362070821.png

 

Many thanks

Shanker V

Labels