Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Equivalent formula in alteryx for #duration(1,0,0,0)

dkma
8 - Asteroid

Hello all,

 

I'm just figuring out the equivalent for the Excel Power query formulae for  Duration

 

eg #duration(1,0,0,0)

3 REPLIES 3
AngelosPachis
16 - Nebula

Hi @dkma ,

 

If I understand the duration formula correctly, it estimates the duration between two dates in days right?

 

The equivalent in Alteryx would be :

 

DatetimeDiff([StartDate],[EndDate],"days")

 

Hope that helps,

 

Angelos

dkma
8 - Asteroid

@AngelosPachis

 

Actually, In a formulae condition if the any employee works less than 6 hours of time, we should add default 6 hours of duration to the worked hours

 that's what the condition is

AngelosPachis
16 - Nebula

@dkma difficult to tell without a look at the data, but that sounds like an if statement.

 

So

 

Create column named [Duration of worked hours]

If [Employee work hours field]<6 then 6
ELSE [Employee work hours field]
ENDIF
Labels
Top Solution Authors