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
15 - Aurora

Try ELSE Null()

Bren_Spill
11 - Bolide

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

DataNath
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