on 09-05-2008 4:20 PM
How can I create a cross tab group option to get reports for a group of 2 months of each year?
we have the option for a day, week, month, quarter or year..
I need an option for November and December together as a group.
Thanks in advance.
Claudio.
I think by using specified order we can get it.
When you go to group options select specified order and add each month from JAN to OCT by giving the range from 1/1/2008 to 1/31/2008 -->JAN
from 2/1/2008 to 2/29/2008-->FEB
.
.
.
.
.
from 11/1/2008 to 12/31/2008--> Group Name
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raghavendra,
This is the information for the date I'm using,
It's working fine for year comparison but I would like to include just november and december for the last 8 years.
stringvar DT:= totext({pos_hist_lin_fil.PosHistLinInvcDat},0,'');
numbervar yr:= tonumber(left(DT,4));
numbervar mo:= tonumber(mid(DT,5,2));
numbervar dy:= tonumber(right(DT,2));
Date (yr,mo,dy)
How can extract just the last 2 months of the year and grouped by year?
I appreciate all your help,
There is an error in the formula,
The remaining text does not appear to be part of the formula.
here is the text I put in the record selection,
stringvar DT:= totext({pos_hist_lin_fil.PosHistLinInvcDat},0,'');
numbervar yr:= tonumber(left(DT,4));
numbervar mo:= tonumber(mid(DT,5,2));
numbervar dy:= tonumber(right(DT,2));
Date (yr,mo,dy)
month(Date (yr,mo,dy))= 11 or month(Date (yr,mo,dy))=12
Yes, I'm using CR2008, how can I do it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using CR 2008 you could create a calculated member to do this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i would do a formula to cast your date/time field to the month name (e.g. 01/05/2008 4:45PM = January)
formula: MonthName (month({Command.Create Date/Time}))
You can then use that formula in your cross-tab...then do "Specified Order"...selecting Jan..Feb...Mar........etc..etc...Oct. Then use the "Put All Others, with the name:" = "November/December". (in this case that would be Nov and Dec)
This will keep you from having to do a range when years change..etc. Hope this helps.
Level:
1. {Command.Create Date/Time} - row printed for each year
2. *formula* - to show as "Jan..Feb............Nov/Dec"
output:
2001
Jan
Feb
.
.
.
.
Nov/Dec
2002
Jan
Feb
.
.
.
.
Nov/Dec
2003
Jan
Feb
.
.
.
.
Nov/Dec
etc.
etc.
Edited by: Roberto Andrade Jr on Sep 5, 2008 5:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your help,
I need to do it for every year, for the last 8 years.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.