Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Max Date - 1 day Expand / Collapse
Author
Message
Posted Friday, June 13, 2014 7:56 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 7:34 AM
Points: 299, Visits: 498
Using SSRS I'm trying to use the max date minus 1 day in the title ....Max(Fields!DateName.Value, "DataSet1")

BTW: I've tried DateAdd(DD, -1, Max(Fields!DateName.Value, "DataSet1")
Thanks
Joe
Post #1580527
Posted Friday, June 13, 2014 8:24 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Yesterday @ 8:49 PM
Points: 773, Visits: 4,971
Turns out I did that same thing when I first tried it... You have to wrap the units in double quotes, because this is .NET, not SQL (so the rules are slightly different):

=DateAdd("d",-1,MAX(Fields!TransDate.Value, "BankBalance"))
Post #1580548
Posted Friday, June 13, 2014 1:25 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 7:34 AM
Points: 299, Visits: 498
Thanks worked great !!
Post #1580722
Posted Friday, June 13, 2014 5:12 PM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Yesterday @ 8:49 PM
Points: 773, Visits: 4,971
Good to hear!

You're welcome =)
Post #1580765
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse