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

Convert Min value into number

Hi All,

I have a field in my report which is in min , (Calculated by using the interval function between two timestamp),.

Now i need to convert that value in to integer .

Time Difference(In Min)Time To reduceExpected Result
241014
341123
341321

Thanks,

D J

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If your minutes are displayed by Interval(TimeDiff, 'MM'), then multiply by 1440 (24 * 60) to get a value in minutes.

HTH

Jonathan

Edit:   eg (Time2 - Time1)*1440

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

View solution in original post

5 Replies
tresesco
MVP
MVP

Minute to integer? you mean minute to hour? if so, then simply, = minute/60 .

Not applicable
Author

Time1Time2Time3Interval(1,2)Interval(2,3)Coloumn(4)-Cloumn(4)
12/11/2013 12:2012/11/2013 12:3012/11/2013 12:10102010
12/11/2013 12:3012/11/2013 12:5012/11/2013 12:20203010
12/11/2013 12:5012/11/2013 12:5512/11/2013 12:3052520
12/11/2013 12:4012/11/2013 12:5012/11/2013 12:4010100

This was the exactly what I want , but instead of this I a getting some different vaues in Last coloumn.

Can any one kindly help me on this.

Thnaks

D J

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If your minutes are displayed by Interval(TimeDiff, 'MM'), then multiply by 1440 (24 * 60) to get a value in minutes.

HTH

Jonathan

Edit:   eg (Time2 - Time1)*1440

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
maxgro
MVP
MVP

Hi

this is my result (see attachment)

Regards

104543.jpg

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

While using Interval, it still maintains internally a datetime/time format. Here you need conversion like

Minute(Column(5) - Column(4))

Interval(Column(5) - Column(4), 'm')