Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rash_611
Partner - Contributor III
Partner - Contributor III

Problem in Sum()

Hi All,

Capture.jpg

i have derived downtime field as

if(SYSDOWNMINS>1440,(interval(Timestamp(DATETIME)-DayStart( DATETIME),'mm')),SYSDOWNMINS)

when we are giving sum(downtime) in front end we are getting 1384.49.... why is this can any one help me....

Regards,

Grace

6 Replies
anbu1984
Master III
Master III

Can you add sample qvw.

rash_611
Partner - Contributor III
Partner - Contributor III
Author

PFA

anbu1984
Master III
Master III

Change format of downtime to Number. Check attached qvw

danieloberbilli
Specialist II
Specialist II

there seems to be an issue with the last 3 numbers:

downtime sum(downtime)
1384.4965277778
13661366
1010
77
10550.73263888889051
7000.48611111110949
4000.27777777777374
MarcoWedel

you are adding days and minutes.

interval(Timestamp(DATETIME)-DayStart( DATETIME),'mm'))


gives you an interval with a textual representation in minutes but an underlying numerical value of days.


So you could try:


if(SYSDOWNMINS>1440,Round(Frac(DATETIME)*60),SYSDOWNMINS) as downtime


hope this helps


regards


Marco