Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Bar Chart: Y axis convert seconds to hh:mm Post Reply Post New Topic
Author Message
crstar
Newbie
Newbie


Joined: 02 Aug 2012
Online Status: Offline
Posts: 31
Quote crstar Replybullet Topic: Bar Chart: Y axis convert seconds to hh:mm
    Posted: 18 Sep 2012 at 3:09pm
Dear Experts,
 
I have a bar chart with y axis in seconds units. I would like it to show as hh:mm. I have done a formula, "Time_hhmm" as below.
------------
NumberVar Hours := Truncate(Remainder({@Time}, 86400) / 3600);
NumberVar Minutes := Truncate(Remainder({@Time}, 3600) / 60);
NumberVar Seconds := Remainder({@Time}, 60);
Totext(Hours,'00') +':'+ Totext(Minutes,'00');
------------
 
While i change the y axis data to "Time_hhmm", it only allow summarize as count.
 
Any idea how to show the @time in hh:mm format at y-axis?
 
Thanks a lot.


Edited by crstar - 18 Sep 2012 at 3:10pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Sep 2012 at 4:10am
its text
you would have to choose a numeric value process to sum (only hours or only minutes)
IP IP Logged
crstar
Newbie
Newbie


Joined: 02 Aug 2012
Online Status: Offline
Posts: 31
Quote crstar Replybullet Posted: 22 Sep 2012 at 4:11am
is there any way can convert the number (seconds) to time format hh:mm and able to show as y-axis in bar chart?.. Thanks..
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.