SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 sum if dateadd
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sz1
Constraint Violating Yak Guru

United Kingdom
443 Posts

Posted - 03/20/2013 :  07:11:47  Show Profile  Reply with Quote
Hi I've done loads of these now so I must be missing something sill here?

Trying to sum the tickets that are 1 day less from today in an expression, I get an error with this?

=sum(iif(Fields!Agreed_Solved_Date___Time.Value =DateAdd("d",-1,Today()),1,0)))

Much thanks

SZ1
Learning and development is the driving force in the universe...!

sz1
Constraint Violating Yak Guru

United Kingdom
443 Posts

Posted - 03/20/2013 :  07:58:06  Show Profile  Reply with Quote
Ok this code works but counting 0 for even though there are 6 records for yesterday?

=Sum(IIF(Fields!Agreed_Solved_Date___Time.Value = DateAdd("d",-1, TODAY()),1,0))

SZ1
Learning and development is the driving force in the universe...!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000