Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

If Then Statement

greenman73
7 - Meteor

Hello,

 

I am trying to get the day count between 2 dates when a cell in the same row says closed.

 

If Contains ([Incident Status], 'Closed') Then DateTimeDiff([Incident Last Resolved Date],[Incident Reported Date],'days') ELSE "" ENDIF

 

So if a cell in Column Incident Status says Closed then i want to calculate the different between Incident Last Resolved Date and Incident Reported Date.

 

I keep getting this error, in attachment

 

thanks!

 

6 REPLIES 6
ChrisTX
16 - Nebula
16 - Nebula

Try ELSE Null()

Bren_Spill
12 - Quasar
12 - Quasar

@greenman73 - The error says it's expression #2 which is the Select Column expression. Can you share that?

DataNath
17 - Castor
17 - Castor

Hey @greenman73, there's nothing wrong with your expression here. The problem is that you've got another Formula expression in the tool and haven't given it a name. If you've made this by mistake then just delete it, or, if you're trying to make a new field or update an existing one then just set a name or choose the current field from the drop down!

 

Capture (4).PNG

greenman73
7 - Meteor

thank you!

greenman73
7 - Meteor

thank you!!! user error!

greenman73
7 - Meteor

thank you!!!!

Labels
Top Solution Authors