Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Another Nested IIf question

Author  Topic 

kdnichols
Posting Yak Master

232 Posts

Posted - 2006-12-26 : 09:17:08
Hello,

I have the following Nested IIf statement:


=Sum(IIf(Fields!Disposition.Value =16,1,0)) / Count( Fields!VendorId.Value=7)


This returns me a value of 0.5 when it should be 0.0 what have I done wrong? There are no error messages during the compile and build.

Thanks In Advance!

Hope everyone had a Merry Christmas!

Kurt

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-12-26 : 09:34:32
Where is nesting?

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

kdnichols
Posting Yak Master

232 Posts

Posted - 2006-12-26 : 09:44:22
Hello,

I guess it is not nesting just an IIf.

Kurt
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-12-26 : 10:47:07
This is very little information. Please provide some sample data.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -