Solved

Crystal reports break down by week

Posted on 2013-11-07
2
599 Views
Last Modified: 2013-11-07
I have a couple months worth of data that I want to break down by week?  I know to break it down by month I would use something like this
if totext({ArInvoice.InvoiceDate}, 'MM-dd-yyyy') startswith "01" then "January" else

,but not sure about breaking it down into weeks.
0
Comment
Question by:TomBalla
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39631259
Crystal provides an easy way to do it.

Group on the date field
When you group on a date field you get the option to group on a period.  Just choose WEEK

ANother way is to use DatePart

DatePart ("ww",{DateField})  returns the week number.

You can also use DatePart("m",{DateField}) to get the month

MOnth({DateField}) also returns the month

mlmcc
0
 

Author Closing Comment

by:TomBalla
ID: 39631303
Awesome, Don't know how I didn't know this.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

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 …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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