Posted by: Charles Maitland | Tuesday 23 January, 2007

MDX for using Yesterdays date in a SSRS Parameter

Snippet from Stevienova that will return yesterdays date for use in a parameter.

No comment on it effectiveness as I haven’t tested it or analyzed it.

About these ads

Responses

  1. Try this(smaller):

    =”[Time].[Calendar Date].&[” & Today().AddDays(-1).ToString("yyyy-MM-ddT00:00:00]“)


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

Categories

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: