Hi.
Using visual studio 2005 with SQL 2005 reporting Services.
I'm trying to create an expression to check for multiple conditions. Basically I'm doing a sum on TIMEINSECONDS if a paycodeid is 123, 124, 125, 126 or 127.
In Crystal I would create a running total and say something like
Is there an equivalant to this approach in Reporting Services?
I have tried this
This returns the following error: [BC30455]Argument not specified for 'Falsepart' of 'Public Function(Iif(Expression As Boolean, Truepart As Object, Falsepart As Object) As Object'.
Any ideas?
Thanks,
Bjorn
Using visual studio 2005 with SQL 2005 reporting Services.
I'm trying to create an expression to check for multiple conditions. Basically I'm doing a sum on TIMEINSECONDS if a paycodeid is 123, 124, 125, 126 or 127.
In Crystal I would create a running total and say something like
Code:
if {paycodeid} in [123,124,125,126,127] then do something.
Is there an equivalant to this approach in Reporting Services?
I have tried this
Code:
=IIF
(
(
Fields!PAYCODEID.Value =(123) or
Fields!PAYCODEID.Value =(124) or
Fields!PAYCODEID.Value =(125) or
Fields!PAYCODEID.Value =(126) or
Fields!PAYCODEID.Value =(127)
)
,Fields!TIMEINSECONDS.Value/3600.00
,0.00
)
This returns the following error: [BC30455]Argument not specified for 'Falsepart' of 'Public Function(Iif(Expression As Boolean, Truepart As Object, Falsepart As Object) As Object'.
Any ideas?
Thanks,
Bjorn