Solved

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

Posted on 2013-01-11
3
392 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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