Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

hh:mm:ss to mm conversion

Hi QV,

I have below data :

  

MonthPhone time
YTD1:33:56
YTD1:31:51
YTD1:26:01
YTD1:13:14
YTD1:27:21
YTD1:53:41
YTD1:39:50

I need to calculate Phone Time in minutes, like

1:33:56 should be 94min.

How can i do this in Script/Chart expr.

Pls suggest me on this.

Thanks,

Ananth

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

for expression,

=hour([Phone time]) * 60 + minute([Phone time])+round(Second([Phone time])/60,1)

View solution in original post

4 Replies
settu_periasamy
Master III
Master III

Hi,

Check this

Load *,hour([Phone time]) * 60 + minute([Phone time])+round(Second([Phone time])/60,1) as Phone_Min;

LOAD * INLINE [

     Month, Phone time

    YTD, 1:33:56

    YTD, 1:31:51

    YTD, 1:26:01

    YTD, 1:13:14

    YTD, 1:27:21

    YTD, 1:53:41

    YTD, 1:39:50  

];

Edit: Seconds Added

settu_periasamy
Master III
Master III

for expression,

=hour([Phone time]) * 60 + minute([Phone time])+round(Second([Phone time])/60,1)

jonathandienst
Partner - Champion III
Partner - Champion III

Leverage QV's time functions rather than doing the work yourself:

=Time#([Phone time], 'h:MM:SS') * 60

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

ThanQ very much for your great support