Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rolling data on Crystal Reports Chart

Status
Not open for further replies.

iamrahben

MIS
Jun 11, 2008
4
US
I am trying to display a rolling 52 week period on the chart. Is there a way to get a rolling date so that each week the chart drops off the oldest date. In the report, I counted the weeks and suppressed it, but the data in the charts doesn't reflect it. See below the formula for suppressing older dates. But this doesn't translate on the chart.

{@RUN_count_total} < (DistinctCount ({@WeekOfMon}, {Command.dr_user_fld_2}) - 52)


{@RUN_count_total} -> Counts each week
{@WeekOfMon} -> Each week

Thanks for your help!

 
Datediff("ww", {your.date}, currentdate) will give you a number, Use record selection to eliminate those that are too early.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
Thank you SO MUCH! That worked perfectly! You have a wonderful day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top