reporting services - SSRS parameter to select "future" or "past" dates. (contracts expired or current by expiration date) -
what expression , dataset query structure use add drop-down filter filter contract records date, selecting either "expired", expirationdate < today(), or "current", expirationdate >= today()?
one option use parameter along dataset filter.
- add new parameter report.
- set available values "expired" , "current".
add filter dataset expression check each row. example:
=iif(parameters!myparam.value = "expired" , fields!expirationdate.value < today, true, iif(parameters!myparam.value = "current" , fields!expirationdate.value >= today, true, false))
the filter should this:
Comments
Post a Comment