Announcements
 Crystal Reports Forum : General Information : Announcements
Message Icon Topic: Cross Tab Reports - Date Grouping Post Reply Post New Topic
Author Message
NGC64
Newbie
Newbie


Joined: 29 Apr 2012
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote NGC64 Replybullet Topic: Cross Tab Reports - Date Grouping
    Posted: 29 Apr 2012 at 1:27am
Hi, I am trying to create a cross tab with order dates, grouped by the month as column heading. is there a way to display a month even if there are no orders in that month? i.e. no orders for March, but want to display Jan, Feb, Mar.
 
 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 01 May 2012 at 2:53pm
The only way to display a date that is not in your data that I know of is to use a Dates table.  If you can add a table to your database, I usually use something like the following that will cover any type of date you might need for reporting:
 
DATE_TYPE      Varchar
START_DATE    Date
END_DATE       Date
 
DATE_TYPE is the following: DAY, WEEK, MONTH, QUARTER, YEAR
 
Left join FROM this table TO the date field in your data and then group on the date from this table.
 
I use this table for several types of things:  filling in dates that aren't in the data, grouping/aggregating data at different date levels, etc.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.