Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Akhil1993
Contributor
Contributor

Hours to Day and Hour Format Conversion

I have a KPI called call time and the value is coming like 1 04:03:25.

I need this in a format, 1 Day 04 hour 03 minute 25 sec.

The measure I am using is Aggr(avg(Distinct (Time(ConvDuration/86400,'hh:mm:ss'))),Calls_Key)

where ConvDuration is my time filed.

Calls_Key is the filed used for grouping.

Please help me to solve this. Appreciate your help. Thank you

Labels (1)
1 Reply
salonicdk28
Creator II
Creator II

Hi, Try the below expression once

First convert into number and then distribute it respectively as per d h mm ss

= Replace(Replace(Replace(Replace(Interval(Interval(Datetime1*86400,'dd hh:mm:ss')/24/60/60,'dd U hh V mm X ss Z'),'U', 'Day'),'V', 'Hour'),'X','minute'),'Z', 'sec')

I am getting the result as desired , please see the below screenshot -

salonicdk28_0-1692963125491.png