on 01-06-2010 1:13 PM
Crystal 11, I understand grouping dates via traditional calendar ranges but how do you create a formula that groups 10 years of monthly data into our Fiscal year grouping which is September 1 to August 31?
Thanks
You can create 2 formulas that extracts the month and year from the date field.
month( {SuperCheck.CkDate})
(year({SuperCheck.CkDate})-10.00) -- this will return your year 10 years prior
create a group formula
if datefield in month and year then true
something like that will work.
you may want to create parameters to feed the dates to run at any time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for being so elementary here.
I have this date field {Electrical_.Begin_Date} that actually goes back to 1997.
Created one formula called Month: Month({Electrical_.Begin_Date})
Created another formula called Year: (year({Electrical_.Begin_Date})-13.00)
I went to design view and change group and check marked use Formula as Group Sort Order and
created Group Formula: (year({Electrical_.Begin_Date})-13.00) and receive an error "A Constant Expression is required here" with the Electrical_Begin_Date highlighted.
My report group is on the Electrical_Begin_Date field.
Tried to create another Group Formula: if {Electrical_.Begin_Date} in {@Month} and {@Year} then true
and receive an error "A Date-Time is required here with the @Month highlighted.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.