Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivasa1
Creator II
Creator II

chart experssion time duration

Hi

Howi can  take time duration between start date(10/1/2012  1:00:00 PM) and end date(10/1/2012  3:00:00 PM)

in chart experssion

thanks

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

=interval(TIMESTAMP2 - TIMESTAMP1,'hh:mm')

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

5 Replies
swuehl
MVP
MVP

Look into interval() function in QV.

=interval(TIMESTAMP2 - TIMESTAMP1)

Your timestamps should be interpreted as such, use timestamp#() function if needed, with an appropriate format code.

srinivasa1
Creator II
Creator II
Author

It helped me Thanks sir.

srinivasa1
Creator II
Creator II
Author

Hi

Thanks for your reply .How i can avoid AM and PM ist come along with duration like (1.00.00 AM) i need 1 hr or 1.30 hr like that

thanks

MayilVahanan

HI

Try like this

=interval(TIMESTAMP2 - TIMESTAMP1,'hh:mm')

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
srinivasa1
Creator II
Creator II
Author

Thanks .its correct Ans.but i have set number style as interval its also working.thanks for your guidence.