Solved

Crystal reports break down by week

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now