Microsoft
Software
Hardware
Network
Question : How do I compare dates in SQL Reporting Services using the IIf Expression Builder
I am trying to compare dates that are in field in a dataset "Created" This Field reports the date in this format: 2009-07-13 21:45:53.000
I added a Calculated Field to a Dataset and named it "SumTotalProcessedFY" and defined the expression in the Field Property as the following:
=IIf(Fields!Created.Value > 2009-07-01, 1,0)
I want to find out how many dates in thisfield that are > 07/01/2009
In the Report, I have a table and in the cell where I want to place the output of this expression I used this expression:
=Sum(Fields!SumTotalProces
sedFY.Valu
e)
hoping this would provide me with a total of those records that met the criteria of > July 1, 2009
When I preview the Report it displays error.
Looking for suggestions as I have several date fields to compare in this project
Answer : How do I compare dates in SQL Reporting Services using the IIf Expression Builder
=IIf(DateDiff("d",Fields!C
reated.Val
ue , 2009-07-01)>0, 1,0)
Random Solutions
SQL Express 2005 ODBC Connection Error 67 and 17
Setting folder and file permissions in C#
RPC/HTTP won't accept password on Exchange 2007 unless the Default Web Site is restarted
Decommission temp DC in 2008, giong to 2008 R2 domain
Interuption to my start-up
I am trying to install ADFS on Windows server 2003 R2 - I can get the ADFS web components installed but...
access 2003 delete query to not work check sql syntax?
Operation must use an updatable query. (Error 3073)
How do I get MS Access 2000 (Office) updates sr1a & sp3 to install ?
Quit Business Object Application through VBA