Alteryx Designer Desktop Discussions

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

IF formula

mabdulh1
8 - Asteroid

Hi, 

 

So here is what I need help with I am working with the below info. I need a formual that will look at this data and produce the output with number of days. Thats the easy part but since the data sometimes comes incomplete or isnt clean there needs to be some prework done. Below you will see 3 issues

1. The Start date doesnt fall within the year but I would like the number of days for it to output for that line =364

2. If both dates are there and its for the full year = 364 days

3. Missing Start date - Add the start date and then calculate the number of days (full year =364)

4. Missing End date - Add the year end date and then calculate number of days (full year = 364)

 

mabdulh1_0-1575478668968.png

 

Thanks for your help in advance,

 

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @mabdulh1 ,

 

Take a look at the attached example. In the formula, if the year was different than the current year, I have automatically inserted 364 even if the difference between the dates were less than 364.

 

Let me know if that works for you.

Best,

Fernando Vizcaino

bpatel
Alteryx
Alteryx

hi @mabdulh1 ,

 

is this what you are looking to do.. 

bpatel_1-1575491277058.png

 

hope this helps or is on the right track!

 

Labels