Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Time diff

gagandeep_dhall
8 - Asteroid

Hi All,

 

I am trying to get difference of time in 2 columns to be displayed in minutes.

I was able to get it in seconds, but unable to get it in minutes.

 

Start TimeEnd TimeDifference (in mins)
19:51:2320:52:21 

 

Thanks,

Gagandeep

15 REPLIES 15
messi007
15 - Aurora
15 - Aurora

@gagandeep_dhall,

 

Please use the formula below

 

 

DateTimeDiff([End Time],[Start Time], "minutes")

 

 

Regards,

 

atcodedog05
22 - Nova
22 - Nova

Hi @gagandeep_dhall 

 

Hope this is what your formula looks like.

atcodedog05_0-1608305625284.png

DateTimeDiff([End Time],[Start Time],"min")

Hope this helps 🙂

 

gagandeep_dhall
8 - Asteroid

Hi,

 

Yes. Thanks it works.

But how to display the result in 2 decimals?

 

Regards,

Gagandeep

atcodedog05
22 - Nova
22 - Nova

like as in ?

 

its usually rounded off.

AngelosPachis
16 - Nebula

Hi @gagandeep_dhall ,

 

You can use the formula that @messi007 and @atcodedog05  suggested above, but instead of using "minutes" as a unit, use seconds.

 

Then go on and divide that calculation with 60, so that will return you the decimals. 

 

 

 

(DateTimeDiff([End Time],[Start Time],"min") )/60

 

 

 

Make sure that the field in your formula is set to be a double or float to allow you to see the decimals, or to a fixed decimals 19.2 to keep only 2 decimals precision.

 

EDIT : So you should get something like this 

 

AngelosPachis_0-1608312646828.png

 

Regards,

 

Angelos

 

gagandeep_dhall
8 - Asteroid

Thanks a lot for the help 🙂 

 

A small unrelated question. I have 3 files in a folder and I am using " * " in the Input as part of the files have dates in them.

 

For some of the tabs in the files, my flow works and it collates info from all the files, but for a few tabs it shoes information from just 1 file.

 

Please let me know if you would want me to ask it as a separate question.

 

Regards

atcodedog05
22 - Nova
22 - Nova

oh thats what you wanted @gagandeep_dhall 😅

gagandeep_dhall
8 - Asteroid

haha. Yes 🙂 

But thanks for taking out time to read and reply to my query earlier.

 

I had another ask, which I shared in my earlier reply. Will you be able to help me out in that?

 

Regards

atcodedog05
22 - Nova
22 - Nova

Hi @gagandeep_dhall 

 

You take a look into this link it might help

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/The-Ultimate-Input-Data-Flowchart/t...

 

Assuming that you are reading the sheets and then passing it through dynamic tool to read data.

Is there any error or warning popping up?

 

Labels