Dominican1979
IS-IT--Management
Hello everyone,
Thanks in advance for reading my post. So I have a report with a crosstab on the report header and thats all I have in there. This report is to keep track of customer service reps and the count of return authorization numbers they give out. This is how my data is arranged on the crosstab:
Rows: Employee Name
Columns: a formula @summarize (described below)
Summarized Fields: count of RA numbers
@Summarize
Select {?SummarizeBy}
case "Year" : date(year({RADate}),1,1)
case "Month" : date(year({RADate}),month({RADate}),1)
case "Week" : {RADate}-dayofweek({RADate})+1
case "Day" : {RADate}
I also have a parameter field called: SummarizeBy which has a list of the following values:
Year
Month
Week
Day
When I run the report, I do get the correct number of columns based on the dates and broken down correctly depending on the option I choose (year, month, week, day). However, the column label shows the date no matter what option I pick.
for example if I run it from Jan 2011 to June 2011 by year, I would get one column which is correct, but it would say 1/1/2011 instead of saying 2011. If i run the same dates by month, I would get the first date of each month for the columns like: 1/1/2011, 2/1/2011, 3/1/2011.... and so on. If I do it by month, the same story picking the first date in each week. The only one that actually does what is supposed to is picking by day, shows the actual dates for each day
Now, what I would like to have happen is this:
If I run the report and pick year from the parameter list, I would like it to say the actual year for each column. If i run it by month, the name of the month, by week: the week number within a month and by day just the date like it does now.
I'm using Crystal XI
Thanks a lot for your help in advance
Thanks in advance for reading my post. So I have a report with a crosstab on the report header and thats all I have in there. This report is to keep track of customer service reps and the count of return authorization numbers they give out. This is how my data is arranged on the crosstab:
Rows: Employee Name
Columns: a formula @summarize (described below)
Summarized Fields: count of RA numbers
@Summarize
Select {?SummarizeBy}
case "Year" : date(year({RADate}),1,1)
case "Month" : date(year({RADate}),month({RADate}),1)
case "Week" : {RADate}-dayofweek({RADate})+1
case "Day" : {RADate}
I also have a parameter field called: SummarizeBy which has a list of the following values:
Year
Month
Week
Day
When I run the report, I do get the correct number of columns based on the dates and broken down correctly depending on the option I choose (year, month, week, day). However, the column label shows the date no matter what option I pick.
for example if I run it from Jan 2011 to June 2011 by year, I would get one column which is correct, but it would say 1/1/2011 instead of saying 2011. If i run the same dates by month, I would get the first date of each month for the columns like: 1/1/2011, 2/1/2011, 3/1/2011.... and so on. If I do it by month, the same story picking the first date in each week. The only one that actually does what is supposed to is picking by day, shows the actual dates for each day
Now, what I would like to have happen is this:
If I run the report and pick year from the parameter list, I would like it to say the actual year for each column. If i run it by month, the name of the month, by week: the week number within a month and by day just the date like it does now.
I'm using Crystal XI
Thanks a lot for your help in advance