Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Displaying yesterday's date in SSRS textbox if user selects today's date

$
0
0

Hey,

I am working on an SSRS expression for my textbox. What I want is.. If the user selects todays date (10/30/2012), then my expression should say, "Report will show data till October 29,2012" (means yesterday, since my table has been loaded till yesterday). I want this condition to work only IF the user selects current date.

But, if the user selects 10/16/2012 (since my data has been loaded for that day already), then I want them to get a message that says "Report will show data till October 16,2012".

I am not sure, how to use an IIF condition for this expression. This is what i ahve right now.

="Report will show data till:" + " " + Format(DateAdd("d", -1, Parameters!InDate.Value),"MMMM dd, yyyy")

My expression gives the yesterday's date for all the dates. I just want yesterday's date only if the user select current date.

InDate has a DATE datatype.


Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>