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.

  1. add new parameter report.
  2. set available values "expired" , "current".
  3. 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:

enter image description here


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -