Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: pull time out of field with date/time
Author
Message
lorimack
Groupie
Joined: 03 Nov 2009
Online Status: Offline
Posts: 48
Topic: pull time out of field with date/time
Posted: 06 Mar 2013 at 9:54am
Hi,
I have a field that includes the date and time. I would like to remove the date from this field, i know how to show only time, and group by time.
for instance, im trying to find peak call times, my groups are looking like this
1/1/11 0100
1/1/11 1400
1/1/11 2300
1/2/11 0100
1/2/11 2200
1/2/11 2300
i would like to show an output like this
0100 - 2
1400 - 1
2200 - 1
2300 -2
any ideas?
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 06 Mar 2013 at 10:03am
this looks like a text field.
You can strip out the last 4 characters group and then then do a count on the group
right(field,4)
IP Logged
lorimack
Groupie
Joined: 03 Nov 2009
Online Status: Offline
Posts: 48
Posted: 06 Mar 2013 at 10:27am
not quite sure how to do that, can you explain?
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 06 Mar 2013 at 10:35am
use a formula to get the last 4 characters from teh field
//timeonly
right(table.field,4)
group on this formula field
insert a count of the datetime field at the group footer
Edited by DBlank - 06 Mar 2013 at 10:35am
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.