Solved

How to use Group expert to break time and date down to 30 Min  within Crystal Reports

Posted on 2013-01-11
3
389 Views
Last Modified: 2013-01-11
I am using CR Professional 11 and the question is I am wanting to break down a Date range of tickets created into 30 minute slots. I have used Group Expert to sort this through the field for time and Date but the opitions are seconds minutes or Hours. Since I need 30 Minute Breakdown how would I present this in a formula? (I presume it would use that within the Group Sort order)

Many thanks in advance for this.
0
Comment
Question by:supportnet24
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 38768073
You can create a reasonably meaningful group field like this..

//gpvalue
stringvar gpsuffix;
if minute({table.Date})<30 then gpsuffix:="  00-29:59" else gpsuffix:="  30-59:59";
Totext({table.Date},"yyyy-MM-dd HH") & gpsuffix

Then group on this formula field
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 38768080
You will need to create groupings on the time in a formula

Something like

If (Time({YourDateTimeField}) <= Time(0,30,0)) then
     "00:00 - 00:30"
Else If (Time({YourDateTimeField}) <= Time(1,0,0)) then
    "00:30 - 01:00"
ETC

You can then group on the formula

mlmcc
0
 

Author Closing Comment

by:supportnet24
ID: 38768413
Many thanks for the fast Feedback it worked a treat
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question