Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

If statement

angelique_martin
7 - Meteor

Hi Alteryx Community,

 

I am trying to determine how to write this if statement to create a new column within Alteryx:

 

If there is one row for an agreement number and condition type =Y909 and scale_qty is null  then "growth Flat%". Also if there is one row for an agreement number and condition type =Y909 or Y917 then "Growth-Threshold". Please see below pictures of what I have versus what I want. Thank you in advance!

 

Current Outcome:

angelique_martin_2-1636740937988.png

 

 

Desired Outcome:

 

angelique_martin_3-1636740976431.png

 

 

 

1 REPLY 1
chukleswk
11 - Bolide

You can use the following if formula using the attached flow. This produces the desired output but does not take into account if you have more than one Agreement_Num or if there is a Cond_Type other than Y909 or Y917.

 

IfStatement1.PNG

IfStatement2.PNG

  

Labels