Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Can anyone diagnose why this expression is not working?
The Total Time expression is:
=Interval(Timestamp(activity_totime,'M/DD/YY HH:MM:SS TT')-Timestamp(activity_fromtime,'M/DD/YY HH:MM:SS TT'),'HH:MM')
Thanks!
HI
Use hh:mm:ss tt instead of caps..HH:MM:SS TT
So it brings. please test it in textbox bu using both format.. you can find the difference..
HI
Try like this
=Interval(Timestamp('9/11/2012 10:30:00 AM','M/DD/YY hh:mm:ss tt')-Timestamp('9/11/2012 11:15:00 AM','M/DD/YY hh:mm:ss tt'),'hh:mm') gives -00:45
Hope it helps
Thanks for the help, Mayil. Using my field names, what would be different about the statements though? Am I missing something?
HI
Use hh:mm:ss tt instead of caps..HH:MM:SS TT
So it brings. please test it in textbox bu using both format.. you can find the difference..
Qlikview expression evaluator takes MM as Month becasue M(Capital) is used for month.
m is used for minutes.
That did the trick. Thanks!!
One more question. When I export it to Excel, Excel changes the format so that an elapsed time of 45:49 (45 hours and 49 minutes) shows up as 45:49:00, or 1/1/1900 9:49:00 PM. Is there a way to adjust the format in QlikView so that it will be exported properly?
HI
Try like this
Interval(Timestamp('9/11/2012 10:30:00 AM','M/DD/YY hh:mm:ss tt')-Timestamp('9/11/2012 11:15:00 AM','M/DD/YY hh:mm:ss tt'),'hh:mm:ss')
may be it helps
I tried that but then it forces me to have hh:mm:ss in the QlikView table instead of hh:mm like I want. Hmm.