Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-01-11
3
Medium Priority
?
406 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 2000 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 101

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

916 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