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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter Report By Week of Selected Date 1

Status
Not open for further replies.

Mav3000

Technical User
Jun 20, 2005
113
GB
Hi, I'm using CR10. I have a report that works fine and shows information based on a given month. The Report uses a date parameter to ask the user to select a date.

The report then only shows data where the month and year of a date field is equal to the month and year of the data parameter.

However, the user now wants to see data specific to a certain week, and no longer a certain month.

How can I do this in CR10? I can't find any formula functions that return the week number.

I need to filter the report to show all records where the week number is equal to the week number of the parameter.

Any ideas? I'm really stumped on this one!

Richard
 
Wow thanks very much Ian for the quick reply. I can't believe how simple the solution is, but kind of guessed I was missing something simple.

I'll tie this in with a year comparisson to to ensure that the week number relates to the week number of the same year too.

Thanks again,

Richard
 
Hi,

Just a quick follow up to this question - is it possible to return the week commencing date of the entered parameter date?

I've searched Google for the answer but can't find anything on this.

Thanks, Richard
 
I seem to have got this working by using this formula:

{?Report Week}-(datepart("w",{?Report Week})-2)

I want it to return the Monday as the week commencing date, which is does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top