|
Posted by Glenn Adams [MVP - Retail Mgmt on December 7, 2006, 12:10 pm
Please log in for more thread options
It can't. The filter limits are just string tokens that represent
special dates - Today, start of month, start of year, a couple of
others. You can't perform math on them.
You could use the SelectionCriteria to limit the entire report to the
past 120 days:
SelCriteria = " ([Transaction].[Time] >= (dateadd(dd,-120,getdate()))) "
No mater what date range is selected in the filter, the reprot would
always be limited to the past 120 days...
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information.
cesmi1 wrote:
> I'm trying to put a filter value into a report's .qrp and am having
> difficulty with the right syntax.
>
> I want to set the filter to take the current date and subtract 120 days from
> it. The filter is currently set to:
> Begin Filter
> FieldName = "[Transaction].Time"
> FilterOp = reportfilteropbetween
> FilterLoLim = "<Today>"
> FilterHiLim = "<Today>"
> End Filter
>
> I would like FilterLoLim to be: FilterLoLim = <Today> - 120
>
> How can this be accomplished?
|