Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Format Duration in DD:HH:MM:SS

Femi_Olunuga
6 - Meteoroid

Good Afternoon,

 

I have an issue that is giving me sleepless night.

 

I have a duration column (one is Resolution time (in hrs)) in my data, some entries are more than 24 hours( some are like 79:45:52) and I want to present it in DD:HH:MM:SS as I understand the Alteryx doesn't identify any time format more than 24 hours, How can i go about it.

 

Here is a structure of my data

 

 

10 REPLIES 10
atcodedog05
22 - Nova
22 - Nova

Hi @Femi_Olunuga 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643981019321.png

 

Hope this helps : )

 

Femi_Olunuga
6 - Meteoroid

It worked fine
Thanks so much.
If you have time, kindly explain the logic you used, just so that I have a better understanding for similar problem.

 

Thank you.

atcodedog05
22 - Nova
22 - Nova

Hi @Femi_Olunuga 

 

Taking hours/24 for days And hours-days*24 for hours

 

Happy to help : )

Cheers and have a nice day!

Femi_Olunuga
6 - Meteoroid

Thank you for your help.

 

I realised that the column came as a string, which means I  will not be able to carry out any calculation on them. Is it possible to convert them as an Int or any datatype that help me to perform calculations on them.

 

Thank you.

atcodedog05
22 - Nova
22 - Nova

Hi @Femi_Olunuga 

 

What kind of calculations are you looking for?

Femi_Olunuga
6 - Meteoroid

I want to be able to aggregate the duration by different dimension such as (Priority, agents, work category etc). For instance, I might want to see the entire or the average duration it takes to complete heating systems which is a job category.

Femi_Olunuga
6 - Meteoroid

@atcodedog05 Hello friend.

Wondering if you could help with this

atcodedog05
22 - Nova
22 - Nova

Hi @Femi_Olunuga 

 

You would need to convert it to seconds like below to perform calculations and at the end, you can convert back the format.

 

atcodedog05_0-1644581980814.png

 

Hope this helps : )

Femi_Olunuga
6 - Meteoroid

Thank you much friend!

It worked

Labels
Top Solution Authors