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.
RÉSOLU

Create variables based on 2 columns

Kza40381
Météoroïde

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 RÉPONSES 6
AZuc
Alteryx Alumni (Retired)

@Kza40381 

 

could you provide the input dataset?

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Kza40381
Météoroïde

I just did.  🙂  thank you!

Christina_H
Magnétar

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
Météoroïde

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

Christina_H
Magnétar

No problem, glad I could help!

Kza40381
Météoroïde

Thank you Christina!

Étiquettes
Auteurs des meilleures solutions