We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Create variables based on 2 columns

Kza40381
6 - Meteoroid

Hi,  I am very novice with Alteryx and have been trying for hours to figure this out.  I need to create a variable that if Actual date is null then Current Planned Date for each item in the name column.  I created a column for the if statement for the date, however, I can not figure out how to do it for each name.  I have also tried transposing. 

 

Can someone please help me.  I have attached a screenshot of original data and outcome desired.

6 REPLIES 6
AZuc
Alteryx Alumni (Retired)

@Kza40381 

 

could you provide the input dataset?

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Kza40381
6 - Meteoroid

I just did.  🙂  thank you!

Christina_H
14 - Magnetar

Are you trying to calculate the Act vs Planned column?  If so, I think this is the formula you need:

if IsNull([Actual Date]) then [Current Planned Date] else [Actual Date] endif

 

Then you can use a cross-tab tool to get the pivot table:

Christina_Hurrell_0-1635433429118.png

 

Kza40381
6 - Meteoroid

Thank you so much Christina!  I tried for hours and so many different ways.  

Christina_H
14 - Magnetar

No problem, glad I could help!

Kza40381
6 - Meteoroid

Thank you Christina!

Labels
Top Solution Authors