all groups > sql server reporting services > march 2005 >
You're in the

sql server reporting services

group:

compare two fields from same dataset in iif


compare two fields from same dataset in iif stupy1 NO[at]SPAM hotmail.com
3/25/2005 11:33:58 AM
sql server reporting services:
hi,

This statement returns an "#error" on my report.

=sum(iif(Fields!current_fiscal_period.Value=Fields!fiscal_period.Value,Fields!shrink_dollars_positive.Value,0))

There is only one datatset for this report.

any clues?

thanks,

Justin
Re: compare two fields from same dataset in iif stupy1 NO[at]SPAM hotmail.com
3/25/2005 11:43:32 AM
Got it! I needed to Cint function

=sum(iif(Fields!current_fiscal_period.Value=Fields!fiscal_period.Value,
CInt(Fields!shrink_dollars_positive.Value),0))
AddThis Social Bookmark Button