Hi All,
Using Crystal XI on a sql database i have created a report which shows the following information on the detail line:
Staff Name | Team Name | @adherence | @rank
the rank formula looks like this:
if {@adherence} = nthlargest(1,{@adherence}) then "1"
else if {@adherence} = nthlargest(2,{@adherence}) then "2"
up to 100
Lets say that for each agent(row) in the database is a weekly summary with the date field representing the date that the week commences on (i.e 03/08/2006 represents 03/08/2006 to 09/08/2006)
I added an item in the select expert to that it only displays 03/08/2006.
I then duplicated the report and changed the select expert to date = dateadd("d",-7,{Date}) to show the previous weeks results when executed.
I then inserted the second report as a subreport into the first one and link by agent name and team only.
I was expecting the rank number of the agent in the subreport to display correctly in the main report but it didnt. All of the subreport ranks are 1
What can i do to make this work
Eddie
p.s. - I have looking around this forum to find clues and i think i might need to use shared variables which i have no experience in.
Any help is appreciated.
Using Crystal XI on a sql database i have created a report which shows the following information on the detail line:
Staff Name | Team Name | @adherence | @rank
the rank formula looks like this:
if {@adherence} = nthlargest(1,{@adherence}) then "1"
else if {@adherence} = nthlargest(2,{@adherence}) then "2"
up to 100
Lets say that for each agent(row) in the database is a weekly summary with the date field representing the date that the week commences on (i.e 03/08/2006 represents 03/08/2006 to 09/08/2006)
I added an item in the select expert to that it only displays 03/08/2006.
I then duplicated the report and changed the select expert to date = dateadd("d",-7,{Date}) to show the previous weeks results when executed.
I then inserted the second report as a subreport into the first one and link by agent name and team only.
I was expecting the rank number of the agent in the subreport to display correctly in the main report but it didnt. All of the subreport ranks are 1
What can i do to make this work
Eddie
p.s. - I have looking around this forum to find clues and i think i might need to use shared variables which i have no experience in.
Any help is appreciated.