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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -