Solved

Crystal reports break down by week

Posted on 2013-11-07
2
588 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 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