Set a Reporting Services Parameter default to Today or Last Month

To format a Reporting Services parameter with the current date, Go to the Parameter Properties, Select Default, and click the fx button for Specify Values.  Enter the following expression to Format a Date Value in the format yyyyMMdd e.g. 23rd October 2010 as 20121023.


=Format(Today(),"yyyyMMdd")

Likewise to just get one month previous to current date in the same format


=Format(DateAdd("m",-1,Today()),"yyyyMMdd")

About AussieBICG

Connect with me here https://au.linkedin.com/in/aussiebicg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s